开发者

Devise and Rails 3 redirection

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜