Re: [Rails] Form_for text_area
Hey
If you want default values add them in your model. If you are talking about a placeholder in your view:
form_for() do |f|
f.text_area :name, :rows => 5, :placeholder => "Your Text here...."
AS you can see i set 5 rows for the text area AS default to display. And there is some placeholder text in it...
Hope this helps you.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/QtBcuPeOjnEJ.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home