Subdomains in Rails 3
Are still a nightmare to get tested, etc.
To share sessions across subdomains you need to set the session options during the request so you know what domain you're sharing across. This means we still need to do it with a before_filter, or something similar. It looks like you should be able to set
:domain => true in
config/initializers/session_store.rb to do this instead but Devise does not support it yet as far as I can see.
Here I'm using subdomains with a custom
url_for extension which means from "http://www.smackaho.st"
root_path would be "/" while from "http://admin.smackaho.st"
root_path would be "http://www.smackaho.st/".