nfelsen (owner)

Revisions

gist: 4354 Download_button fork
public
Public Clone URL: git://gist.github.com/4354.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<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 %>
~
~
~
~