11175
(-- --)
1
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
Phlip
(Phlip)
3
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 <select> HTML needs the multiple="multiple" attribute.
Post your code if you get stuck!