blob: bf165e02beb0664012e538370a72f2f51f6f4c4a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<h1>Editing <%= singular_name %></h1>
<%%= error_messages_for :<%= singular_name %> %>
<%% form_for(:<%= singular_name %>, :url => <%= singular_name %>_path(@<%= singular_name %>), :html => { :method => :put }) do |f| %>
<% for attribute in attributes -%>
<p>
<b><%= attribute.column.human_name %></b><br />
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
</p>
<% end -%>
<p>
<%%= submit_tag "Update" %>
</p>
<%% end %>
<%%= link_to 'Show', <%= singular_name %>_path(@<%= singular_name %>) %> |
<%%= link_to 'Back', <%= plural_name %>_path %>
|