Re: Prototype Form.serialize and mutli selects

Sam Stephenson
2005-12-09T07:43:49Z

Hi Morus,

On 12/9/05, Morus Walter
<morus.walter.ml-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
wrote:
> Prototype OTOH creates form data like
> foo[]=1,2,4
> which isn''t recognized by rails as multiple values and I end up
with an
> array ["1,2,4"] in the parameter hash, which does not work for
updating
> a habtm relationship.
>
> Should this be considered a bug in prototype (Form.serialize should work
> the same way the browser works)? Or is it a rails problem?

I agree, Prototype''s behavior is broken.  Expect a corrected version
to ship with Rails 1.0.

--
sam