~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: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

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'