Displaying 1 result from an estimated 1 matches for "account_home".
Did you mean:
account_code
2006 Feb 26
0
Routing based on host domain
...h works great. What I can''t
figure out is the routing. I would like to write something like this:
map.public_home '''', :controller => ''page'', :action => ''home'',
:requirements => { :host => /^(www\.)?foo\.com$/i }
map.account_home '''', :controller => ''account'', :action => ''view''
So when the request goes through the table it would call the correct
controller/action based on the host requirement. If the host is
www.foo.com or foo.com (no subdomain) it goes to the...