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
In your view template, set a default value:
f.text_field :password, :value => "password"
In your Javascript (assuming jquery here):
$(document).ready(function() { //add a handler to remove the text });