【发布时间】:2011-11-24 17:25:41
【问题描述】:
刚刚从https://github.com/Satish/restful-authentication 安装了升级后的 Rails 3 的 restful_authentication 插件。我正在尝试在我的应用程序助手中包含来自插件的代码,如下所示:
class ApplicationController < ActionController::Base
protect_from_forgery
include AuthenticatedSystem
end
但是,当我运行服务器并导航到本地主机上的应用程序时,我收到如下错误:
uninitialized constant ApplicationHelper::AuthenticatedSystem
AuthenticatedSystem 是 lib/authenticated_system.rb 中的一个模块,那么为什么包含不起作用?
【问题讨论】:
标签: ruby-on-rails-3 restful-authentication