Permalink
Browse files

Add extra documentation for password_field

I think this should be explicit as the password fields behaviour is inconsistent with other fields in this regard.
It had me scratching my head until I dug through the source code.
  • Loading branch information...
1 parent edb40dc commit 137e5d91db0820e023dcb6b660e13279d650a856 @dxg dxg committed Sep 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_helper.rb
@@ -785,7 +785,7 @@ def text_field(object_name, method, options = {})
# Returns an input tag of the "password" type tailored for accessing a specified attribute (identified by +method+) on an object
# assigned to the template (identified by +object+). Additional options on the input tag can be passed as a
# hash with +options+. These options will be tagged onto the HTML as an HTML element attribute as in the example
- # shown.
+ # shown. This field will be blank by default; pass in a value via +options+ if this is not desired.
#
# ==== Examples
# password_field(:login, :pass, :size => 20)

0 comments on commit 137e5d9

Please sign in to comment.