# Array in the link

**URL:** <https://www.ruby-forum.com/t/array-in-the-link/151857>\
**Category:** Rails\
**Created:** [October 27, 2008, 2:24am UTC](https://www.ruby-forum.com/t/array-in-the-link/151857 "2008-10-27T02:24:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [October 27, 2008, 2:24am UTC](https://www.ruby-forum.com/t/array-in-the-link/151857/1 "2008-10-27T02:24:58Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [October 27, 2008, 4:50am UTC](https://www.ruby-forum.com/t/array-in-the-link/151857/2 "2008-10-27T04:50:34Z")

</div>

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.
