I don''t think that you can pass an array or hash which is more than
one level from view to controller.
You''d better divide your objects into strings and pass them seperately
or arrange them in an array or hash which has only one level.
On Oct 27, 10:24 am, daociyiyou
<chey...-/E1597aS9LRv1O+Z8WTAqQ@public.gmane.org>
wrote:> I have an array in an view link submitted to an action.This array
> contains the objects which have not any relation each other,they also
> have no model relation.The link look like this :
> ###############################
> <%=link_remote_to
>
"agree",:url=>{:action=>"agree",:id=>[object1,object2],...}-%>
> ###############################
> In the action,how do i parse the params[:id] ?,object1=params[:id][0]
> and object2=params[:id][1]? It is wrong.I check the development log,id
> was submitted like this : "2/5".So who can help me?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---