mbleigh / subdomain-fu

A new plugin approach to attempting to solve the usage of subdomains in linking and routing in Rails projects.
http://rdoc.info/projects/mbleigh/subdomain-fu
Other
586 stars 118 forks source link

plugin does honor the :only_path notion of routing when doing so goes against the intent of the command #20

Open ghazel opened 13 years ago

ghazel commented 13 years ago

Contrary to the documentation, subdomain-fu does honor the :only_path notion of routing.

>>> p [current_subdomain, current_domain, front_path(:subdomain => false)]
["foo", "testing.com:3000", "/"]

and:

>>> p [current_subdomain, current_domain, front_path(:subdomain => 'foo')]
[nil, "testing.com:3000", "/"]

The _url forms work as expected.