Re: Rails Framework Documentation - More Info, Please

Conrad Taylor
Wed, 20 Dec 2006 08:34:15 -0000

Hey Brian, it''s OK to experiment.

-Conrad

On 12/20/06, Conrad Taylor
<conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Hey Brian, if you take another look at the AWDwRv2, it provides the
> answer for you on page 484 of the PDF.  You may also see usage on page
> 162 as well.  Next, are you attempting to edit the password field?  I
> believe this is the case.  Then you''ll need to do the following:
>
> :value => ""
>
> Note:  The option that you use for the password_field would be very
> similar to the options that you would use within HTML.
>
> Good luck,
>
> -Conrad
>
> On 12/19/06, Bryan Cox
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:
> >
> > Hey all,
> >
> > I try to ask intelligent question about Ruby on Rails, and only after
I
> > search for the answers myself.  Recently, I''ve hit a
frustrating bump on
> > the learning curve and it seems really stupid.
> >
> > I''m making a user system, and working on the update method.
When I
> > create the form in the same manner as taught in Agile Development with
> > Rails and a number of other tutorials (assign an object in the
> > controler, and then use FormHelper methods to create the form in the
> > view) I run into issues with the password field.  I hash all the
> > passwords, and they''re inputted by default into the passsword
field.  I
> > want this field to be blank, like the password_confirmation field is,
> > but I don''t know how.
> >
> > So I looked at the rails documentation, and the password helper works
> > just like the text_field helper... okay, so I look at the
documentation
> > for THAT, and here is where the problem is, and I''ve seen
this a number
> > of times before.
> >
> > When I look at the documentation (reference:
> >
http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#M000389),
> > I look at text_field at the very bottom.  It lists as parameters three
> > things.  I figure that the solution to my problem is by passing an
> > option in the options hash.  But I don''t know the syntax and
don''t want
> > to guess at it.  Tell me how, generally, to find a list of available
> > options for a function -- I can''t seem to figure it out.
This would
> > help me a number of different times, because I run into this issue
quite
> > often.
> >
> > --
> > Posted via http://www.ruby-forum.com/.
> >
> > > >
> >