[Rails] How to use a text_field for dates?

2012-06-14 Thread Marc C.
Hello, I need to accept dates in a form using a text_field and not a date_select. Why? Well, because for users it's faster to type a date. But if I enter a simple date like "13/05/2012" (dd/mm/ format), when I want to edit this register, in the text_field appears "2012-05-13". How can I chan

[Rails] Creating formatted PDFs

2012-05-22 Thread Marc C.
Hello, I'm writing a mail-merge application with Ruby on Rails. I have one user-created template, wich he creates with a CKEditor (in HTML). I have a list of members, and in the "mailings" controller I mix the template with the members data to create a PDF with a letter to every member. This is al