I created a form in Rails 3.2 using the format below, but when I open the post view, I don’t see the form to allow me post comments. What could be wrong?
<%= form_tag(:controller => "posts", :action => "create") do %>
<%= label_tag(:message, "What are you doing?") %><br />
<%= text_area_tag(:message, nil, :size => "44x6") %><br />
<%= submit_tag("Update") %>
<% end %>
In Rails 3 the form_* helpers return the markup rather than outputting it directly. Change:
to: