5292899c9a
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
18 lines
385 B
Plaintext
18 lines
385 B
Plaintext
<h1>New <%= singular_name %></h1>
|
|
|
|
<%% form_for(@<%= singular_name %>) do |f| %>
|
|
<%%= f.error_messages %>
|
|
|
|
<% for attribute in attributes -%>
|
|
<p>
|
|
<%%= f.label :<%= attribute.name %> %><br />
|
|
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
|
|
</p>
|
|
<% end -%>
|
|
<p>
|
|
<%%= f.submit "Create" %>
|
|
</p>
|
|
<%% end %>
|
|
|
|
<%%= link_to 'Back', <%= plural_name %>_path %>
|