Why does this code show an error in text area?
<%= form_for(:ad, :url => {:action => \'create\'}) do |f| %> <%= f.text_field(:name) %> <
The FormHelper method is text_area, not text_area_tag.
FormHelper
text_area_tag
Use either of the following:
<%= f.text_area(:text, size: '50x10') %>
or:
<%= text_area_tag(:ad, :text, size: '50x10') %>