Editing discussion
<%= error_messages_for :discussion %>
<% form_for(:discussion, :url => discussion_path(@discussion), :html => { :method => :put }) do |f| %>
<%= submit_tag "Update" %>
<% end %>
<%= link_to 'Show', discussion_path(@discussion) %> |
<%= link_to 'Back', discussions_path %>