Hi all…
I have to use a select box with multiple selection capability. Also i
have to retrieve the selected items from the controller.
I used select_tag. But while retrieving the value i don’t get anything
in the controller
Please help.
Thanks
Suneeta
It works fine for me.
On Sat, May 10, 2008 at 3:13 AM, Suneeta Km <
[email protected]> wrote:
Thanks
Suneeta
Posted via http://www.ruby-forum.com/.
–
James M.
Suneeta Km wrote:
I have to use a select box with multiple selection capability. Also i
have to retrieve the selected items from the controller.
I used select_tag. But while retrieving the value i don’t get anything
in the controller
The two tricks are…
select_tag ‘my_records[]’, … :multiple => :multiple
The [] is a trick that helps a form pass an array of results, and your
HTML needs the multiple=“multiple” attribute.
Post your code if you get stuck!
–
Phlip