<%= form_for [@forum, @topic] do |f| %> <% if @topic.errors.any? %> <% flash.now[:error] = @topic.errors.full_messages.join(', and ') %> <% end %>
<%= action_name.humanize %> Topic
<%= f.label :title %> <%= f.text_field :title, :style => "width:98%" %>
<% unless @topic.id %> <%= f.label :body %> <%= f.cktext_area :body, :style => "width:98%", :rows => 15 %>
<% end %>
<% end %>