<%= form_for(:ad,:url => {:action => 'create'}) do |f| %> <%= f.text_field(:name) %> <%= f.text_area_tag(:text,"",:size => "50x10") %> <%= submit_tag("Submit") %> <% end %>
text_area
使用以下任一方法:
<%= f.text_area(:text,size: '50x10') %>
要么:
<%= text_area_tag(:ad,:text,size: '50x10') %>