我在lib /中創建了一個名爲br_states.rb的文件,當我在我的視圖中調用狀態時,我收到以下錯誤消息:Rails 3 - lib未初始化的常量ActionView :: CompiledTemplates :: STATES
uninitialized constant ActionView::CompiledTemplates::STATES
我已經在我的application.rb中設置了autoload_path來加載lib文件夾,但還沒有工作。 config.autoload_paths << File.join(config.root, "lib")
這是我的代碼:https://gist.github.com/1822459
什麼問題?