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
  • Loading branch information...
senny committed Jul 29, 2014
2 parents 540bc3d + ed29c0a commit 94abb92c8d95ed69254876397226a56a6f041c70
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*
+
* Add `Rails::Application.config_for` to load a configuration for the current
environment.
@@ -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 94abb92

Please sign in to comment.