diff options
author | Rick Olson <technoweenie@gmail.com> | 2008-01-12 01:05:36 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2008-01-12 01:05:36 +0000 |
commit | 3dd6027f708a472064e73a50f4afb433f338bf09 (patch) | |
tree | 0686f8e5791f170600b263a884ac4f21c5444aeb /railties/lib | |
parent | 9889d86a6ce1c2206460276e63d7c0317b41a72f (diff) | |
download | rails-3dd6027f708a472064e73a50f4afb433f338bf09.tar.gz rails-3dd6027f708a472064e73a50f4afb433f338bf09.tar.bz2 rails-3dd6027f708a472064e73a50f4afb433f338bf09.zip |
Update scaffold to use labels instead of bold tags. Closes #10757 [zach-inglis-lt3]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb | 3 | ||||
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb b/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb index 8a65b50db1..73b200ba63 100644 --- a/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb +++ b/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.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 "Update" %> 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" %> |