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
Here is a much cleaner syntax if using rails 4+
rails 4+
<%= f.text_field :attr, placeholder: "placeholder text" %>
So rails 4+ can now use this syntax instead of the hash syntax