From f038d4cc5fe1ac21f92c7e32c61ff85a0c816f3f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 18 Apr 2013 11:52:44 -0700 Subject: HTML5 breaks --- railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb | 6 +++--- railties/lib/rails/generators/erb/scaffold/templates/index.html.erb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'railties') diff --git a/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb index 85a1b01cc6..1799e823b6 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb @@ -14,14 +14,14 @@ <% attributes.each do |attribute| -%>
<% if attribute.password_digest? -%> - <%%= f.label :password %>
+ <%%= f.label :password %>
<%%= f.password_field :password %>
- <%%= f.label :password_confirmation %>
+ <%%= f.label :password_confirmation %>
<%%= f.password_field :password_confirmation %> <% else -%> - <%%= f.label :<%= attribute.name %> %>
+ <%%= f.label :<%= attribute.name %> %>
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> <% end -%>
diff --git a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb index d2fd99fdcb..854074677a 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb @@ -26,6 +26,6 @@ -
+
<%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path %> -- cgit v1.2.3