formtastic – how to prepopulate a string input with a value

Yup, you got the right answer all by yourself! Formtastic’s rdoc is a mess, but we’re working on it. Another option if you want this purely at a view level is to use the :input_html option, which gives you direct access to HTML attributes of the input tag:

f.input :email, :input_html => { :value => params[:email] }

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)