<%= action_name.humanize %> Post
<%= form_for [@topic, @post] do |f| %> <% if @post.errors.any? %> <% flash.now[:error] = @post.errors.full_messages.join(', and ') %> <% end %>
<%= f.label :body %>
(Required)
<%= f.text_area :body, :cols => 60, :rows => 15 %>
<% end %>