# Getting DIM values over link\_to

**URL:** <https://www.ruby-forum.com/t/getting-dim-values-over-link-to/119499>\
**Category:** Rails\
**Created:** [November 7, 2007, 2:03pm UTC](https://www.ruby-forum.com/t/getting-dim-values-over-link-to/119499 "2007-11-07T14:03:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de0a6/32.png) [@maul](https://www.ruby-forum.com/u/maul)\
**Post date:** [November 7, 2007, 2:03pm UTC](https://www.ruby-forum.com/t/getting-dim-values-over-link-to/119499/1 "2007-11-07T14:03:36Z")

</div>

I am trying to be RESTful. I have users\_controller so that I can see the  
profile of a user via user/:user\_id .

What I want, is to show a select box (drop down) where I see some users.  
I will select a user and click ‘Go’ to go to the user profile page,  
meaning user/:selected\_users\_id

but I cannot get the user\_id selected in the drop down. I could, I would  
write a link\_to helper like this:

link\_to ‘go!’, :action=\>‘show’, :id=\>the value selected in the drop down

any idea how can I do that?
