I think you want Form.serialize
http://wiki.rubyonrails.com/rails/pages/observe_form+-+Passing+Parameters/
-r
On 11/25/05, Gitte Wange <gitte-vGiBmfdlLJY@public.gmane.org>
wrote:> Hi!
>
> I''m having some problems with observe_form and several multiple
selects.
> My form contains 5 multiple selects and I would like to send the
> selected values from each of them to my controller.
> Usually you would create a string of the values in the :with parameter,
> but it would be quite ugly to make a oneliner looping through select
> boxes to find selected indexes.
>
> How does people usually solve this?
> I tried making a function that returns a string of parameters, but I
> just got bogus calling it from :with.
>
> Greetings,
> Gitte Wange
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Ryan Raaum
http://www.rockefeller.edu -- Bacterial Pathogenesis and Immunology
http://www.worldmartial.com -- Black Belt Instructor
http://locomotive.sourceforge.net -- Self contained one-click Rails for Mac OS X