If you want the route to be www.mysite.com/bill-walton you will have
to create a catch-all and ofcourse that needs to go at the bottom of
your routes...

Something like so:

map.username ':username', :controller => 'users', :action => 'show'

But now you will have to do a good amount of security in the users
controller. All hackers will hit that controller if it does not match
any other routes.. I guess you could add a regular expression but that
means your usernames would have to follow something that can be
regexed...
--~--~---------~--~----~------------~-------~--~----~
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