how to redirect_back to another subdmain with devise

时间:2016-03-04 18:08:38

标签: ruby-on-rails ruby-on-rails-4 devise

I am using devise to handle registration and authentication.

My entire application is divided into 2 sub-domains. secure.host.dev and main.host.dev.

When user visit http://main.host.dev/users, if not authenticated, must be redirected to http://secure.host.dev/host. This is working perfectly.

The problem is with the redirect back after login. It should redirect_back to http://main.host.dev/users and not to http://secure.host.dev/users as it is now.

How can do that? I did not find any documentation about this

0 个答案:

没有答案