Gem Active_admin 前后台做在一起 后台登陆后跳转到前台了

chancedoor · August 10, 2013 · Last by ChanceDoor replied at August 11, 2013 · 2492 hits

我在 application_controller.rb 里改了 after_sign_in_path_for 没用 在 registrations_controller.rb 改了 after_sign_up_path_for 也没用 请问应该上哪改,怎么改?

=====================

额 已经搞定了 不知道怎么回事 可能是卡了没更新修改的缘故 devise 的登陆和 activeadmin 走的都是 application_controller.rb 里的 我写了个判断 devise 注册走的是 registrations_controller.rb 里的

@ChanceDoor, 把after_sign_in_path_for代码贴上来看看,有可能是没有根据 resource 去跳转

#1 楼 @leomayleomay 额 已经搞定了 不知道怎么回事 可能是卡了没更新修改的缘故 devise 的登陆和 activeadmin 走的都是 application_controller.rb 里的 我写了个判断 devise 注册走的是 registrations_controller.rb 里的 谢谢啊

You need to Sign in before reply, if you don't have an account, please Sign up first.