I would like to create a route as follow:
map.connect ‘user/:user/profile’, :controller => “account”, :action =>
“profile”, :id => some_id
With this, I’m assuming when user put following address in the address
then it redirects to http://localhost/account/profile/1 (e.g. 1 is
user’s internal id)
What I don’t understand is how to convert user name to user id.