2007-12-21 08:48:59 +01:00
|
|
|
<h1>Editing <%= singular_name %></h1>
|
2007-02-10 00:12:31 +01:00
|
|
|
|
2007-12-21 08:48:59 +01:00
|
|
|
<%% form_for(@<%= singular_name %>) do |f| %>
|
2008-05-18 06:22:34 +02:00
|
|
|
<%%= f.error_messages %>
|
|
|
|
|
2007-02-10 00:12:31 +01:00
|
|
|
<% for attribute in attributes -%>
|
|
|
|
<p>
|
2008-05-18 06:22:34 +02:00
|
|
|
<%%= f.label :<%= attribute.name %> %><br />
|
2007-02-10 00:12:31 +01:00
|
|
|
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
|
|
|
|
</p>
|
|
|
|
<% end -%>
|
|
|
|
<p>
|
2009-02-28 02:23:00 +01:00
|
|
|
<%%= f.submit 'Update' %>
|
2007-02-10 00:12:31 +01:00
|
|
|
</p>
|
|
|
|
<%% end %>
|
|
|
|
|
2007-12-21 08:48:59 +01:00
|
|
|
<%%= link_to 'Show', @<%= singular_name %> %> |
|
2009-02-28 02:23:00 +01:00
|
|
|
<%%= link_to 'Back', <%= plural_name %>_path %>
|