instiki/vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb

18 lines
385 B
Plaintext
Raw Normal View History

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