# Linking to a url through a selection list

**URL:** <https://www.ruby-forum.com/t/linking-to-a-url-through-a-selection-list/144044>\
**Category:** Rails\
**Created:** [July 24, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/linking-to-a-url-through-a-selection-list/144044 "2008-07-24T21:35:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylemathews](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/51bf81/32.png) [@kylemathews](https://www.ruby-forum.com/u/kylemathews)\
**Post date:** [July 24, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/linking-to-a-url-through-a-selection-list/144044/1 "2008-07-24T21:35:27Z")

</div>

I have routes.rb set up so that when I go to [mydomain.com/name](http://mydomain.com/name) it goes  
directly to a person’s public page:

map.connect ‘:name’, :controller =\> ‘main’, :action =\> ‘page’

Now, I want a selection list, that when a name is selected and submitted  
will go to that page. So if “Bob” is selected, it will go to  
[mydomain.com/bob](http://mydomain.com/bob).

Let’s just say there is a Person object with a :name field.

Thank you for any help.
