Displaying 1 result from an estimated 1 matches for "hoem".
Did you mean:
hem
2006 Feb 26
0
Routing based on host domain
...; ''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 home page,
otherwise go to the account hoem.
What actually happens is the :requirements are ignored and the first
route always handles. I have some hackery in there to redirect to the
correct location but I''d rather handle this the "correct way".
Any suggetions?
--
Posted via http://www.ruby-forum.com/.