Rails Routes: Creating a reserved url list

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

Cheers,
Chris

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs