我想预设一个带有值的textarea,但它不起作用。
<%= f.text_area(:self_summary, :input_html => { "date-pre" => "I will get to this later."}, :class => "textareastyle") %>
答案 0 :(得分:11)
<%= f.text_area(:self_summary, :value => "I will get to this later.", :class => "textareastyle") %>