我有一个关于在lib目录定义的模块一个令人费解的问题Rails的LIB包括
我有两个文件
#lib/authentication.rb
module Authentication
end
#lib/test_module.rb
module TestModule
end
在我的应用程序控制器我有
class ApplicationController < ActionController::Base
include Authentication
include TestModule
end
认证模块的负载正确但TestModule不
我得到“未初始化的常量ApplicationController :: TestModule“
我很难过...任何人?
编辑:有谁知道我可以看到调试这个?
愚蠢的问题,但你重新启动服务器?如果没有重新启动流程修复它? – 2010-01-12 11:53:03
是我尝试重新启动。服务器无法启动后。 – stellard 2010-01-12 19:33:37