On Dec 9, 9:00 pm, Rick <[EMAIL PROTECTED]> wrote:
> On Tue, Dec 9, 2008 at 3:22 PM, Shandy Nantz
>
>
> Can someone give me some tips as to what even might be wrong or where
> I should start to look? I have some log statements and the same flow
> seems to happen regardless of the scenario.
>
Is this rails check box trickery tripping you up ? The rails check box
helper creates a hidden input field with the same name (and value 0)
as well as the actual check box. If you're using arrays of parameters
like I think you are this can mess things up. If so then one work
around is to use check_box_tag instead of check_box (but which has the
downside of when the box is not ticked you won't get any param for it
rather than receiving a '0'. The other way out is to make your params
a hash keyed by indices rather than an array (I mention this at the
bottom of http://www.spacevatican.org/2008/7/18/parametrised-to-the-max
)
Fred
> I posted the main controller and a few other things that I think might
> be relevant herehttp://pastie.org/335194in case anyway wants to help
> by taking a look.
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---