unique domain name routing

0 views
Skip to first unread message

Adam Dorsey

unread,
Aug 23, 2007, 3:04:17 PM8/23/07
to rubyonra...@googlegroups.com
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
framework.

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,
Adam
--
Posted via http://www.ruby-forum.com/.

Reply all
Reply to author
Forward
0 new messages