instiki/vendor/rails/railties/lib/rails_generator/generators/components/scaffold_resource/templates/view_new.rhtml
2007-02-09 17:12:31 -06:00

18 lines
445 B
Plaintext

<h1>New <%= singular_name %></h1>
<%%= error_messages_for :<%= singular_name %> %>
<%% 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 %>