阅读背景:

在使用Devise的rails应用程序中,当一个未签名的用户访问root时,他们被重定向到/ users / sign_in而不是根路径?

来源:互联网 

In my rails app using Devise, when an unsigned in user visits root they are redirected to /users/sign_in instead of the root path; root path works fine with signed in users. The same thing happens when I click the navbar logo which is a link with the home_path which is root, I am redirected to /users/sign_in just like when visiting root. Here are my routes:In my rails app using Devise, when an unsigned




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

分享到: