Yeah it's pretty simple :-)

The purpose of the first parameter is to provide an ID for the label and
optionally a default text for the label. This is used if you don't provide a
second parameter.

Check out
http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#M001604
and
http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#M001606

:-) Lasse


2010/2/14 Ralph Shnelvar <[email protected]>

> Lasse Bunk wrote:
> > f.label :something, "something"
> >
> > :-) Lasse
> >
> > 2010/2/14 Ralph Shnelvar <[email protected]>
>
> Well ... that certainly was simple .... but then what is the purpose of
> the first parameter?  What are the downsides to
>  f.label '',  "something"
> ?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to