On Nov 17, 4:41 pm, Henrik N <[EMAIL PROTECTED]> wrote:
> I've seen a bunch of logged exceptions the last few months, where
> Rails expects arrayparamslike
> { "ids" => ["123", "456"] }
> but gets
> { "ids" => { "0" => "123", "1" => "456"] }
> or expects hashparamslike
> { "user" => { "foo" => "x", "bar" => "y" } }
> but gets
> {"user" => "foo=x&bar=y" }
>
> So what was supposed to be an array (from checkboxes named "ids[]")
> becomes a hash from ordinals to values instead. And what was supposed
> to be a nested hash becomes a flat hash, with parts unparsed.
> [snip]

> These seem to have in common the user agent
> Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_3; en-us) AppleWebKit/
> 525.18 (KHTML, like Gecko) Version/3.1.1Safari/525.20

Now seen it (hash) from
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/
20080404 Firefox/2.0.0.14
as well.
--~--~---------~--~----~------------~-------~--~----~
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