blob: 11d762b49aef16df9639b2f7f7d197461c77c2a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<h1>New <%= singular_name %></h1>
<%% form_for(:<%= singular_name %>, :url => <%= plural_name %>_path) 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 "Create" %>
</p>
<%% end %>
<%%= link_to 'Back', <%= plural_name %>_path %>
|