Formatting text_field
Yesterday, somebody asked me if it’s possible to format the contents of an input field using the text_field form helper.
I don’t think its documented in the API docs, but you can specify the value to use by passing in a value parameter:
text_field :book, :title, :value => @book.title.upcase