<%= link_to "Forums", home_path %> <%= link_to h(@forum.name), forum_path(@forum) %>

New Topic

by <%= current_user.display_name %>

<%= error_messages_for :topic %> <% form_for :topic, :url => topics_path(@forum) do |f| -%> <%= render :partial => "form", :object => f %> <%= submit_tag 'Post Topic', :or => link_to('Cancel', forum_path(@forum)) %> <% end -%>

Formatting Help
See also the Textile reference here. Don't worry about making mistakes - after adding a reply, you can edit your message as many times as you like. <%= javascript_tag "$('topic_title').focus();" %>