【问题标题】:Routing error: wrong constant name Clearance/sessionsController路由错误:错误的常量名称 Clearance/sessionsController
【发布时间】:2011-10-05 13:37:51
【问题描述】:

我已将 rails3 项目从许可 0.8.8 升级到最新 (0.12.0)。按照 wiki 说明进行操作。

我对大多数经过身份验证的页面都使用了“管理员”前缀。然而,即使路由都是正确的,当我尝试访问“会话/新”时,我还是会遇到路由错误。

我正在覆盖会话/新视图以应用特定布局。

知道可能导致错误的原因吗?

这是日志的输出:

Started GET "/sign_in" for 127.0.0.1 at Wed Oct 05 17:34:05 +0300 2011 
ActionController::RoutingError (wrong constant name Clearance/sessionsController)

【问题讨论】:

  • 你能再分享一些代码吗?
  • 你能提供错误信息吗?很难读懂:)
  • 当然,但这就是我在日志中得到的全部内容:Started GET "/sign_in" for 127.0.0.1 at Wed Oct 05 17:34:05 +0300 2011 ActionController::RoutingError (wrong constant name Clearance/sessionsController): 浏览器输出错误 -> skitch.com/cnicolaou/f6ci9/clearance-error

标签: ruby-on-rails-3 authentication rails-routing clearance


【解决方案1】:

路由错误原来是 String#camelize 与 right_aws gem v2.0.0 冲突

在这种情况下,您需要做的就是更新 right_aws gem

PS:在这里找到答案 (devise routing error)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多