阅读背景:

before_filter require_login创建一个无限循环

来源:互联网 

I'm new to ruby and Rails. I'm Using Devise and CanCan along with Rails_Admin in my app. I'm trying to do -> If a user is already logged in, and it's an admin, redirect to rails_admin_path if it's not an admin but just a user then redirect to 'upload_path', if it's not logged in then redirect to sign_in path, however probably due to my lack of knoledge, I'm creating an infinite redirect loop. Even if I try to access sign_in without the "require_login" filter.I'm new to ruby and Rails. I'm Using Devise and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: