Hello guys.
I have a page with some checkboxes, and the ones that are checked are coming in the parameters list, with the name & ID. I wanted to receive the data in an Array inside params Hashmap, so I can iterate not having to worry about the other parameters, like action, method, etc.
I'm creating the checkboxes this way:
<%= check_box_tag "#{category.name}", category.id, category.active %>
Anyone know the trick?
Thanks alot.
BTW, was very happy to find out that javaranch has a RoR section!
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted
0
I'm not entirely sure what you're asking, but if you want to receive parameters in an array, you need to use array naming notation on the view side, like is done in this tutorial: