Hey everyone!

Is there a way of saying something like this in the routes file (note
that map.connect :controller/:action/:id is my last pattern):
"If the controller you specified doesn't exist, then go to the next pattern"

I want this because if users type in domain.com/noncontrollername, I'd
like the app to render or forward the user to
domain.com/profiles/noncontrollername.  So, for example, if my
username is ramon, and I type domain.com/ramon, I will see my profile.

If this is not possible, what's a good way of doing this? :)

Thanks!
Ramon

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to