Browse files

Merge pull request #7678 from dxg/add_password_field_doco

Add extra documentation for password_field
  • Loading branch information...
2 parents edb40dc + 137e5d9 commit 57887e21b97a571dd93b00073b9be464b6191313 @fxn fxn 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 57887e2

Please sign in to comment.