Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 94abb92c8d95ed69254876397226a56a6f041c70 2 parents 540bc3d + ed29c0a
@senny senny authored
View
5 railties/CHANGELOG.md
@@ -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.
View
2  railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb
@@ -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 -%>
Please sign in to comment.
Something went wrong with that request. Please try again.