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...
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...
That works for that one restful route, but I had hoped to be able to
do something with the nested resource declaration and have this apply
for all the routes... for instance I still have urls that look like
this:
/users/<user id>/contacts/<contact id>
when I'd like to see:
/<username>/contacts/<contact id>
anybody know how to get this form for all the generated restful
routes?