# Rails Routes: Creating a reserved url list

**URL:** <https://www.ruby-forum.com/t/rails-routes-creating-a-reserved-url-list/136181>\
**Category:** Rails\
**Created:** [April 29, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/rails-routes-creating-a-reserved-url-list/136181 "2008-04-29T17:37:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [April 29, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/rails-routes-creating-a-reserved-url-list/136181/1 "2008-04-29T17:37:08Z")

</div>

Hi,

Im currently working on a rails project which has routes setup so that  
users can have their own personal page for example  
[www.mydomain.com/myusername](http://www.mydomain.com/myusername). one problem ive run into is that when i  
want to have say a searcg page www.mydomain/search - the route then  
picks that up as a username and hence i have to link to it using  
[www.mydomain.com/search/index](http://www.mydomain.com/search/index) which is a bit of a pain.

Is there some means of setting up a reserve list on a route e.g: all  
controller names are on the reserved list?

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [April 29, 2008, 7:18pm UTC](https://www.ruby-forum.com/t/rails-routes-creating-a-reserved-url-list/136181/2 "2008-04-29T19:18:33Z")

</div>

I think it goes through routes in the order they’re created, so list  
the controllers first [?]

On Tue, Apr 29, 2008 at 9:37 AM, Chris G.
