Permalink
Browse files

Merge pull request #16328 from noinkling/template_password_confirmati…

…on_fix

Give password_confirmation div the "field" class in the scaffold generator "_form" partial

Conflicts:
	railties/CHANGELOG.md
  • Loading branch information...
1 parent 818b5ec commit a5535544004d48ee979117c77ee6e4fe4240f958 @senny senny committed Jul 29, 2014
Showing with 6 additions and 1 deletion.
  1. +5 −0 railties/CHANGELOG.md
  2. +1 −1 railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb
View
@@ -1,3 +1,8 @@
+* Scaffold generator `_form` partial adds `class="field"` for password
+ confirmation fields.
+
+ *noinkling*
+
* Avoid namespacing routes inside engines.
Mountable engines are namespaced by default so the generated routes
@@ -17,7 +17,7 @@
<%%= f.label :password %><br>
<%%= f.password_field :password %>
</div>
- <div>
+ <div class="field">
<%%= f.label :password_confirmation %><br>
<%%= f.password_field :password_confirmation %>
<% else -%>

0 comments on commit a553554

Please sign in to comment.