96c89fc50ed705dc091a24ebf90d3b8002194bdd
[feedcatcher.git] /
1 <h1>New <%= singular_name %></h1>
2
3 <%% form_for(@<%= singular_name %>) do |f| %>
4 <%%= f.error_messages %>
5
6 <% for attribute in attributes -%>
7 <p>
8 <%%= f.label :<%= attribute.name %> %><br />
9 <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
10 </p>
11 <% end -%>
12 <p>
13 <%%= f.submit 'Create' %>
14 </p>
15 <%% end %>
16
17 <%%= link_to 'Back', <%= plural_name %>_path %>