奇怪的Rails的身份验证问题 [英] Strange Rails Authentication Issue

查看:164
本文介绍了奇怪的Rails的身份验证问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用REST风格的认证Rails插件为应用我开发。
我有一个奇怪的问题,我不能去的底部。
从本质上讲,我第一次登录到该应用程序停止活动一段时间后(应用程序部署在生产,但只能使用由我),我将被带到一个404页,但如果我回到主页,再次登录,按计划一切正常。
任何想法?

I'm using the RESTful authentication Rails plugin for an app I'm developing. I'm having a strange issue I can't get to the bottom of. Essentially, the first time I log into the app after a period of inactivity (the app is deployed in production, but only being used by me), I will be brought to a 404 page, but if I go back to the home page and log in again, everything works according to plan. Any ideas?

推荐答案

请检查您的路线。

不是所有的路线都是一样的。通过在config / routes.rb中文件中的路线出现的顺序航线有优先级定义。优先级从上进入底部。在该文件中的最后一个途径是在最低的优先级,将被最后施加。如果没有路由匹配, 404 被返回。

Not all routes are created equally. Routes have priority defined by the order of appearance of the routes in the config/routes.rb file. The priority goes from top to bottom. The last route in that file is at the lowest priority and will be applied last. If no route matches, 404 is returned.

更多信息: http://api.rubyonrails.org/classes/ActionController/Routing html的

这篇关于奇怪的Rails的身份验证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆