2011-06-03 46 views
1

在不工作,它拋出我下面的錯誤的計算機的計算機上和工作,然後我訪問網站:的Rails 2.3.8應用程序不能在另一個(相同的代碼和DB)

Expected C:/path/to/app/app/helpers/admin/dashboard_helper.rb to define Admin::DashboardHelper 

待辦事項你知道這是爲什麼嗎?我不認爲它的代碼,因爲我從來沒有在我的電腦發生在我身上......

編輯

有沒有太多的表現......

module Admin::DashboardHelper 
end 

EDIT 2 :

這是我得到的development.log後,我訪問本地主機:

Expected C:/Users/Triton/Documents/Brian/Proyectos/YouBlogg/app/helpers/admin/dashboard_helper.rb to define Admin::DashboardHelper 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:426:in `load_missing_constant' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `const_missing' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:364:in `constantize' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:363:in `each' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:363:in `constantize' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/string/inflections.rb:162:in `constantize' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/helpers.rb:137:in `helper' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/helpers.rb:115:in `each' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/helpers.rb:115:in `helper' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/helpers.rb:120:in `helper' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/helpers.rb:115:in `each' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/helpers.rb:115:in `helper' 
C:/Users/Triton/Documents/Brian/Proyectos/YouBlogg/app/controllers/application_controller.rb:7 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:380:in `load_file' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:379:in `load_file' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:259:in `require_or_load' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:425:in `load_missing_constant' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `const_missing' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:92:in `const_missing' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:89:in `dispatch' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:121:in `_call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in `cache' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/head.rb:9:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/methodoverride.rb:24:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `synchronize' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34:in `run' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/urlmap.rb:47:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/urlmap.rb:41:in `each' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/urlmap.rb:41:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/content_length.rb:13:in `call' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/handler/webrick.rb:48:in `service' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:95:in `start' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `each' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `start' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:23:in `start' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/webrick/server.rb:82:in `start' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/handler/webrick.rb:14:in `run' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:111 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require' 
C:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' 
C:/Users/Triton/Documents/Brian/Proyectos/YouBlogg/script/server:3 
-e:1:in `load' 
-e:1 

任何想法?

+0

如何顯示代碼形式'dashboard_helper.rb'? – Zabba 2011-06-03 20:32:39

+0

我編輯了帖子,告訴你..但我不認爲代碼是問題...因爲它在我的電腦上正常工作,這是我第一次運行Rails應用程序第二個,所以我認爲這是一些配置...(這些寶石是不是問題,因爲兩個電腦都有相同的) – 2011-06-03 20:39:03

+0

兩個系統的文件權限是否完全匹配 - 特別是。爲路徑'app/helpers/admin'中的每個目錄? – Zabba 2011-06-03 20:44:16

回答

0

原來它是缺少的HPricot寶石......它發出了一個明確的錯誤消息,哈!

相關問題