Wednesday, March 5, 2014

Devise redirect to another subdomain without login

Devise gem redirect to another subdomain without login

Set the domain in initializers/session_store.rb

For example.

App::Application.config.session_store :cookie_store, key: '_play_cricket_session', domain: ".lvh.me"



App::Application.config.session_store :cookie_store, key: '_play_cricket_session', domain: ".website.com"

No comments:

Post a Comment