这可能与 authlogic 一样与 Rails 有很大关系,但我很困惑。如果我使用 curl 请求一个 url,如下所示:
curl http://neevor:l3ftcas3@localhost:3000/users/alerts/1.xml
我得到了想要的结果。但是,如果我尝试使用浏览器做同样的事情,我会得到:
Redirected to http://192.168.0.49:3000/login
Filter chain halted as [:require_login] rendered_or_redirected.
这是正常的登录页面。
感谢您的任何帮助。