~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb

  • Committer: Michael Forrest
  • Date: 2010-10-15 16:28:50 UTC
  • Revision ID: michael.forrest@canonical.com-20101015162850-tj2vchanv0kr0dun
refrozeĀ gems

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<h1>New <%= singular_name %></h1>
 
2
 
 
3
<%% form_for(@<%= singular_name %>) do |f| %>
 
4
  <%%= f.error_messages %>
 
5
 
 
6
<% for attribute in attributes -%>
 
7
  <p>
 
8
    <%%= f.label :<%= attribute.name %> %><br />
 
9
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
 
10
  </p>
 
11
<% end -%>
 
12
  <p>
 
13
    <%%= f.submit 'Create' %>
 
14
  </p>
 
15
<%% end %>
 
16
 
 
17
<%%= link_to 'Back', <%= plural_name %>_path %>
 
 
b'\\ No newline at end of file'