Skip to content
This repository
Browse code

Update scaffold to use labels instead of bold tags. Closes #10757 [za…

…ch-inglis-lt3]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 3dd6027f708a472064e73a50f4afb433f338bf09 1 parent 9889d86
risk danger olson authored
2  railties/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Update scaffold to use labels instead of bold tags.  Closes #10757 [zach-inglis-lt3]
  4
+
3 5
 * Resurrect WordNet synonym lookups.  #10710 [tom./, matt]
4 6
 
5 7
 * Added config.cache_store to environment options to control the default cache store (default is FileStore if tmp/cache is present, otherwise MemoryStore is used) [DHH]
3  railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.html.erb
@@ -5,10 +5,9 @@
5 5
 <%% form_for(@<%= singular_name %>) do |f| %>
6 6
 <% for attribute in attributes -%>
7 7
   <p>
8  
-    <b><%= attribute.column.human_name %></b><br />
  8
+		<%%= f.label :<%= attribute.name %> %><br />
9 9
     <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
10 10
   </p>
11  
-
12 11
 <% end -%>
13 12
   <p>
14 13
     <%%= f.submit "Update" %>
3  railties/lib/rails_generator/generators/components/scaffold/templates/view_new.html.erb
@@ -5,10 +5,9 @@
5 5
 <%% form_for(@<%= singular_name %>) do |f| %>
6 6
 <% for attribute in attributes -%>
7 7
   <p>
8  
-    <b><%= attribute.column.human_name %></b><br />
  8
+		<%%= f.label :<%= attribute.name %> %><br />
9 9
     <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
10 10
   </p>
11  
-
12 11
 <% end -%>
13 12
   <p>
14 13
     <%%= f.submit "Create" %>

0 notes on commit 3dd6027

Please sign in to comment.
Something went wrong with that request. Please try again.