开发者

Devise and Rails 3 redirection

开发者 https://www.devze.com 2023-02-02 09:07 出处:网络
In my Rails app I use Devise as the authentication system. I have successfully installed the Devide gem and its working fine.

In my Rails app I use Devise as the authentication system. I have successfully installed the Devide gem and its working fine.

But now I want to redirect user to a different path after they login, ex:

dash_board#home

How can I define that in Devise? I'm confused as it doesn't have any controllers shows (as sessions, users etc..). I can see them in the gem file, but I guess changing the gem is not a good opti开发者_C百科on

I'm using Rails 3, Devise 1.1.3

0

精彩评论

暂无评论...
验证码 换一张
取 消