Unique domain name routing

I am setting up a direct mail service with ruby on rails and have a
question before I get going. I apologize, as I am new to this glorious

What I need:
I am setting up a direct mail campaign, using variable data printing. On
the postcard the user will see a personalized URL, like
http://domain.com/joesmith, I want rails to recognize ‘joesmith’ as a
variable and not an actual directory, then hit the database and display
a personalized landing page.

Do I somehow setup that up using a ‘dynamic’ controller of some sort, or
can I specify a custom method in the routing ruby file, to handle the
dynamic URL?

Thanks for the help,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs