awesome, fixed.  thanks fred.

On May 5, 11:42 am, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On May 5, 4:07 pm, "dino d." <dinodorr...@yahoo.com> wrote:
>
> > Hi - I'm trying to get a multi-select box working.  The form shows up
> > fine, and I can select multiple items fine, but in the controller, the
> > parameter shows up as a single string, instead of an array of values.
> > Any ideas?
>
> > The form:
>
> > <%=select_tag "items", @items, :multiple => true :onchange =>
> > "this.form.onsubmit();"%>
>
> use "items[]" for the first parameter ? (I though rails might do this
> automatically, obviously not)
>
> Fred
>
> >The form goes to function update_items in the controller, which fires
> > just fine.  But params[:items] is a single string value.
>
> > Thanks in advance for any help.
>
> > Dino
--~--~---------~--~----~------------~-------~--~----~
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 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to