How can I add placeholder text to my f.text_field fields so that the text comes pre-written by default, and when a user click inside the fields, the te
placeholder
f.text_field
With rails >= 3.0, you can simply use the placeholder option.
f.text_field :attr, placeholder: "placeholder text"