【发布时间】:2011-04-13 08:59:29
【问题描述】:
通过 clarkware 的 iphone-rails-tutorial 工作并尝试构建和运行包含的最终 Rails 代码,但每当我尝试访问 localhost:3000/ 时,我都会在服务器控制台中收到此错误
ActionController::RoutingError (uninitialized constant ApplicationController::Authentication):
app/controllers/application_controller.rb:5:in `<class:ApplicationController>'
app/controllers/application_controller.rb:1:in `<top (required)>'
app/controllers/goals_controller.rb:2:in `<top (required)>'
Rendered /Users/joeuser/.rvm/gems/ruby-1.9.2-p0@rails3/gems/actionpack-3.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.6ms)
之前包含的示例代码“里程碑”运行良好。只有最后一个会抛出错误...
这是什么意思?我的外行猜测是缺少某种身份验证宝石,但我不知道是哪一个。除了默认的 rails 和 sqlite3-ruby 之外,Gemfile 中没有列出任何内容......并且文档中没有提及任何身份验证框架。
任何人了解此错误或对教程足够熟悉以了解发生了什么?
我似乎找不到与本教程相关的论坛,所以我想我会在这里查询。如果你知道的话,请引导我到活跃的论坛。
【问题讨论】:
标签: ruby-on-rails authentication restful-authentication