我的路线文件中有以下应用:
namespace "admin" do
# ADMINISTRATIVE ROUTES ONLY
root :to => 'home#index'
resources :comments do
member do
get :approve
get :reject
end
end
resources :users do
member do
get :block
get :unblock
end
end
end
在本地浏览/ admin时,我会看到相应的页面。 在heroku版本的相同URL上,我得到404.路由显示 正确地在'heroku rake routes'中
日志显示:
ActionController::RoutingError (wrong constant name Admin/
homeController):
/disk1/home/slugs/196384_c95a9e3_4463/mnt/.bundle/gems/gems/
activesupport-3.0.0.beta4/lib/active_support/inflector/methods.rb:
103:in `const_defined?'
有什么想法吗?
答案 0 :(得分:1)
发现这是我们在Gemfile中使用的right_aws gem的一个问题。
答案 1 :(得分:0)
看起来它正在寻找一个小写的“homeController”类,但我不明白为什么。检查您的文件以确保您已正确命名您的班级?
答案 2 :(得分:0)
看起来像ActiveSupport测试版中的错误。您是否正在运行 相同的rails版本?