views:

41

answers:

1

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 ?

A: 

You can use a gem called SubDomain-Fu for this. Watch this screen cast for more details.

KandadaBoggu
Is it the best way to do it ?What I want is to make available USER unique URL's like Facebook.facebook.com/newtongarciafacebook.com/username1facebook.com/username2
NewtonX
The screen cast linked in my answer has a similar use case as yours. Watch it for more details.
KandadaBoggu