Q:

Dynamically generated routes/URLs from Model fields in Rails 3

Describing the following scenario:

A user signs up and provides a firstName (john) and a lastName (jagger)
A route is automatically generated for the default domain i.e. www.asdasd.com/john.doe
A guest visits www.asdasd.com/john.doe and is taken to the 'view' action of the controller for this user

Is something like this possible?  I do not know how to form something like this in routes.rb
Thanks! 

A:

Take a look at friendly_id.  It doesnt generate routes dynamically but instead it lets u use the name as the ID.