Redirect user after log in only if it's on root_path

后端 未结 8 2235
傲寒
傲寒 2020-12-09 06:13

I have a root_path on my Rails application that is not user-protected i.e. it\'s a simple portal homepage, with a login form.

After the users log in, I\

8条回答
  •  轮回少年
    2020-12-09 06:24

    I'm not sure whether or not you're using an after_filter or before_filter somewhere for your redirects but you might be able to use a skip_filter in your login controller. Then put in your custom redirect as a filter within that controller.

    Skip before_filter in Rails

提交回复
热议问题