Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>New topic</h1>
- <% form_for(@topic) do |f| %>
- <%= f.error_messages %>
- <% if params[:forum] %><input type="hidden" id="topic_forum_id" name="topic[forum_id]" value="<%= params[:forum] %>" /><% end %>
- <p>
- <%= f.label :title %><br />
- <%= f.text_field :title %>
- </p>
- <p>
- <textarea name="post[content]" cols="80" rows="20"><%= @post.content %></textarea>
- </p>
- <p><%= f.submit "Create" %></p>
- <% end %>
Add Comment
Please, Sign In to add comment