# Passing object as URL parameter

**URL:** <https://www.ruby-forum.com/t/passing-object-as-url-parameter/149281>\
**Category:** Rails\
**Created:** [September 23, 2008, 9:30am UTC](https://www.ruby-forum.com/t/passing-object-as-url-parameter/149281 "2008-09-23T09:30:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaikishan\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ad7895/32.png) [@Jaikishan\_J](https://www.ruby-forum.com/u/Jaikishan_J)\
**Post date:** [September 23, 2008, 9:30am UTC](https://www.ruby-forum.com/t/passing-object-as-url-parameter/149281/1 "2008-09-23T09:30:08Z")

</div>

I am trying to send an object “student” as a url parameter. It seems  
that I  
need to convert it to string to send it . This is how I am doing this.  
/dashboard/action?student=student.to\_s

Now, in the action, I want to retrieve this object in the action. How  
can I  
do that?

–  
Thanks,  
Jaikishan
