Rails Routes: Creating a reserved url list


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. 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 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?


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