On Nov 23, 3:38 pm, Blake Miller <[email protected]> wrote:
> I have a checkbox tag as follows:
> <%= f.check_box :receive_offers %>
>
> When I view source in the html, I see the value of the checkbox is "1",
> with the normal hidden field value of "0".  However, after posting the
> form and saving to the database, the Mysql column, which is a TinyInt,
> is ALWAYS 0.
>
Try and find at which point things go wrong, eg does the controller
get the right params? Donjon have attr_protected blocking mass
assignment of that attribute? Is some other piece of code overwriting
the value supplied by the form

Fred



> I've tried it with true/false values instead, and no luck.
>
> Any ideas?
>
> Thanks,
> Blake Miller
> -----------------------------www.syntacticsugr.com
>
> --
> Posted viahttp://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].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to