Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i prepopulate a text area with rails

I want to preset a textarea with a value but it isn't working.

<%= f.text_area(:self_summary, :input_html => { "date-pre" => "I will get to this later."}, :class => "textareastyle") %>
like image 878
pratski Avatar asked Dec 21 '22 11:12

pratski


1 Answers

<%= f.text_area(:self_summary, :value => "I will get to this later.", :class => "textareastyle") %>
like image 137
Jiří Pospíšil Avatar answered Dec 24 '22 00:12

Jiří Pospíšil