[Rails] Re: Re: Typecasting and boolean attributes

Derek Haynes
Thu, 12 Jan 2006 08:11:30 -0000

Yeah...I''ll give that another shot...making I was tired and just missed
it.

Thanks for your help Kevin,

Derek

On 1/11/06, Kevin Olbrich <kevin.olbrich@duke.edu>
wrote:
> <%= radio_button ''group'', ''public'',
"1" %>
> <%= radio_button ''group'', ''public'',
"0" %>
>
> This works...
>
> the params hash will look like this {... "group" =>
{"public"=>"1"}}
> when the first one is selected.
>
> The first radio button will be selected if ...
>
> group.public == "1"
>
> Hope that helps...
>
> _Kevin
>
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails