1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/generators/erb/scaffold/templates/new.html.erb
2009-07-02 10:27:39 +02:00

17 lines
No EOL
384 B
Text

<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 %>