How can I use friendly ID in Rails like mysite.com/[USERNAME]
How can I use friendly URLs on my Rails application ? All I need is to make available the following url format mysite.com/company1 mysite.com/user123 mysite.com/user1234 mysite.com/newton.garcia mysite.com/company-name Can anyone help ? I already ask this question on Quora.. http://www.quora.com/How-does-Quora-rewrite-their-urls For who really interested to implement Quora/Facebook URLs like. Heres a tip in Rails3: Make a table called slugs : # slug | model_id | model # =========================== # simple data: # one | 2222 | post # two | 1111 | user # six | 5432 | comment Now in routes.rb