Skip to content

Instantly share code, notes, and snippets.

@nfelsen
Created August 7, 2008 07:02
Show Gist options
  • Save nfelsen/4354 to your computer and use it in GitHub Desktop.
Save nfelsen/4354 to your computer and use it in GitHub Desktop.
<h1>Editing forum</h1>
<%= error_messages_for :forum %>
<% form_for(@forum) do |f| %>
<p>
<%= render :partial => 'fields', :locals => { :f => f } %>
</p>
<p>
<b>Description</b><br />
<%= f.text_area :description %>
</p>
<p>
<%= f.submit "Update" %>
</p>
<% end %>
<%= link_to 'Back', admin_forums_path %>
===================================================================================================
<h1>Editing forum</h1>
<%= error_messages_for :forum %>
<% form_for(@forum) do |f| %>
<p>
<b>Name</b><br />
<%= f.text_field :name %>
</p>
<p>
<b>Description</b><br />
<%= f.text_area :description %>
</p>
<p>
<%= f.submit "Update" %>
</p>
<% end %>
<%= link_to 'Back', admin_forums_path %>
~
~
~
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment