Hello,
I'm not exactly sure how to frame this question so I'll just go for it. I am recently returning to rails after a hiatus and I am building a social networking style application. Basically I'd like to do what twitter does and have each persons profile page be found at "http://www.url.com/username" and while I have managed to get this partially to work.... if I manually type this into the address bar it takes me to their profile page, however I can't seem to figure out how to get my links to here working. I'm sure it has something to do with my routes, but I've never come across any thorough enough routes tutorials to understand this aspect well enough to pull it off.
Here's the code in my routes.rb
map.connect '/:username', :controller => 'users', :action => 'show'
Beyond that i'm at a loss how to make links from various other parts of the application (I've got a User, Question, Friendship, Answer and Votes model at this point.
If sorry that I am unable to frame this question better, but it's one of the main reasons this application isn't getting further. Please let me know if you can point me in the right direction.
Thanks yo!
Oh yeah, PS I'd like to be able to add the questions and answers on top of the URL, such as:
http://www.url.com/username/question/answer/2210
If such a thing is possible