diff options
Diffstat (limited to 'railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb')
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb b/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb index 96f59900b6..e5de92222d 100644 --- a/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb +++ b/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb @@ -5,10 +5,9 @@ <%% form_for(@<%= singular_name %>) do |f| %> <% for attribute in attributes -%> <p> - <b><%= attribute.column.human_name %></b><br /> + <%%= f.label :<%= attribute.name %> %><br /> <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> </p> - <% end -%> <p> <%%= f.submit "Create" %> |