Howdy.
I’m not sure what the right way to do this is. I basically need to
pass an array in via GET to my controller action.
For a little background, here’s what’s going on from the user’s
perspective:
User clicks some checkboxes in my YUI DataTable, thereby marking some
rows.
User then clicks something that causes me to gather up a list of the
selected items, then set those as a new request for another DataTable.
My controller gets these request params, builds a conditions list, and
fetches records from my model.
For example, my URL would be something like this:
/my_controller/my_action?group=users&limits=dog,cat,bird
Then in my_action(), I want to use params[:limits] in conjunction
with
my_model.find(:all, :conditions => { [animal in (?)],
params[:limits] } )
(My syntax may be off in my example, but hopefully my goal is clear.)
Thanks!