KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to copy the twitter profile page and have a url with a username " http://www.my-app.com/username " and while I can manually type this into the address bar and navigate to the profile page I can't link to the custom URL. I think the problem is in the routes - here's the code in my routes.rb map.connect '/:username', :controller => 'users', :action => 'show' Also, I have Question and Answer models and I want to link to them with the customized URL like so: http://www.my-app.com/username/question/answer/2210
Tags (comma-separated)
Save Edits
Cancel