Ruby on Rails: Talk | Google Groups


#1

This is more an architectural question…

I am looking to create a domain that sells widgets (as an example)

widgets.com

Now I have three sales reps, that each sell different kinds of
widgets, and do not need to know about each other.

larry.widget.com

moe.widget.com

curley.widget.com

I don’t want to repeat myself (of course!) with the shopping cart
logic or the transactional logic.

So, should I simply make a view for each user and then direct the
requests to the appropriate view? or is there a better way of doing
this?


#2

Have you looked at the Railscast on subdomains?
http://railscasts.com/episodes/123-subdomains

Eifion
http://asciicasts.com
Twitter: eifion