Awesome! That seemed to have worked. If I type in a /username it sends me to my profile, if I type in a controller it still defaults to that controller.
Thanks! Ramon Tayag On Thu, Feb 26, 2009 at 5:34 PM, Chris Kottom <[email protected]> wrote: > Not sure I understand the behavior you're after completely, but should be > able to do this by specifying a named route in your routes file before the > default ones. > > Ex: > map.user_profile ':username', :controller => 'users', :action => 'show' > map.connect ':controller/:action/:id' > ... > > This will have the effect, however, of matching any incoming request with > only one string. So you won't be able to have another route like: > > map.user_profile ':username', :controller => 'users', :action => 'show' > map.group_profile ':groupname', :controller => 'groups', :action => > 'show' > > All requests here meant for either of these would be sent to the > UsersController#show because it appears first in the routes file. > > Hope this answers your question. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

