Displaying 1 result from an estimated 1 matches for "public_hom".
Did you mean:
public_home
2006 Feb 26
0
Routing based on host domain
...page, i.e.:
* http://apple.foo.com
* http://banana.foo.com
I''ve been using the account_location plugin to help with the parsing and
redirecting of the account subdomains which 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...