2007-02-10 00:12:31 +01:00
|
|
|
<h1>New <%= singular_name %></h1>
|
|
|
|
|
|
|
|
<%%= error_messages_for :<%= singular_name %> %>
|
|
|
|
|
2007-12-21 08:48:59 +01:00
|
|
|
<%% form_for(@<%= singular_name %>) do |f| %>
|
2007-02-10 00:12:31 +01:00
|
|
|
<% for attribute in attributes -%>
|
|
|
|
<p>
|
|
|
|
<b><%= attribute.column.human_name %></b><br />
|
|
|
|
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<% end -%>
|
|
|
|
<p>
|
2007-12-21 08:48:59 +01:00
|
|
|
<%%= f.submit "Create" %>
|
2007-02-10 00:12:31 +01:00
|
|
|
</p>
|
|
|
|
<%% end %>
|
|
|
|
|
2007-12-21 08:48:59 +01:00
|
|
|
<%%= link_to 'Back', <%= plural_name %>_path %>
|