# Formhelper password\_field only takes two arguments

**URL:** <https://www.ruby-forum.com/t/formhelper-password-field-only-takes-two-arguments/183784>\
**Category:** Rails\
**Created:** [February 20, 2010, 2:06am UTC](https://www.ruby-forum.com/t/formhelper-password-field-only-takes-two-arguments/183784 "2010-02-20T02:06:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralphshnelvar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Post date:** [February 20, 2010, 2:06am UTC](https://www.ruby-forum.com/t/formhelper-password-field-only-takes-two-arguments/183784/1 "2010-02-20T02:06:00Z")

</div>

When I look at the docs, password\_field seems to take 3 arguments.

So when I 'play around" with things and I attempt to pass three  
arguments to password\_field … I get an error saying that it only takes  
two parameters (“3 for 2”)

I am totally lost.

---

<div class="post-metadata">

**Author:** ![ralphshnelvar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Post date:** [February 20, 2010, 11:13pm UTC](https://www.ruby-forum.com/t/formhelper-password-field-only-takes-two-arguments/183784/2 "2010-02-20T23:13:56Z")

</div>

On Feb 19, 8:06 pm, Ralph S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> When I look at the docs, password\_field seems to take 3 arguments.
> 
> So when I 'play around" with things and I attempt to pass three  
> arguments to password\_field … I get an error saying that it only takes  
> two parameters (“3 for 2”)
> 
> ## I am totally lost.
> 
> Posted viahttp://www.ruby-forum.com/.

This is how all of the form helper methods are. The FormBuilder object  
automatically handles the first object\_name argument for you.
