2014-02-28 56 views
-1

這是運行時出現錯誤 '導軌c的製備' 的錯誤configurable.rb:30:在`的method_missing ':未定義的方法'='

/Library/Ruby/Gems/2.0.0/gems /railties-4.0.2/lib/rails/railtie/configurable.rb:30:in method_missing': undefined method ='for#(NoMethodError) from /Users/kgb/idyll/config/environments/production.rb:32:in block in <top (required)>' from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:24:in class_eval ' from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:24:in configure' from /Users/kgb/idyll/config/environments/production.rb:1:in' from /Library/Ruby/Gems/2.0.0/ gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:在require' from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in區塊中要求' from/Library/Ru通過/寶石/ 2.0.0 /寶石/的ActiveSupport-4.0.2/LIB/active_support/dependencies.rb:214:在load_dependency' from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in需要」 從/Library/Ruby/Gems/2.0.0/gems/railties-4.0.2 /lib/rails/engine.rb:591:in block (2 levels) in <class:Engine>' from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/engine.rb:590:in每個 ' 從/Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/engine.rb:590:in block in <class:Engine>' from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:30:in instance_exec' from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:30:in run' from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:55:in block in run_initializers' from /System/Library/Frameworks/Ruby.framework/從/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib版本/ 2.0/usr/lib/ruby​​/2.0.0/tsort.rb:150:block in tsort_each' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:183:in塊中(2個級別)在each_strongly_connected_component' 中/ruby/2.0.0/tsort.rb:210:in block (2 levels) in each_strongly_connected_component_from' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:219:in each_strongly_connected_component_from' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:209:in block in each_strongly_connected_component_from' from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:44:in each' from /Library/Ruby/Gems/2.0.0/ gems/railties-4.0.2/lib/rails/initializable.rb:44:在tsort_each_child' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:203:in中每個_trongly_connected_component_from' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort .rb:182:block in each_strongly_connected_component' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:180:in每個' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:180:in each_strongly_connected_component' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:148:in tsort_each' from/Library /Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:54:in run_initializers' from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/application.rb:215:in initialize!' from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in method_missing' from /Users/kgb/idyll/config/environment.rb:5:in' from /Library/Ruby/Gems/2.0.0/gems /railties-4.0.2/lib/rails/application.rb:189:in require' from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/application.rb:189:in require_environment!' 從/Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:61:in <top (required)>' from bin/rails:4:in需要 ' 從倉/軌道:4:在`'

+1

什麼是你的問題? –

+0

對不起,第一次發佈error.I已經解決了我的錯誤。 run rails c production – KGB

回答

0

顯然你使用Unicode字符U + FF1D(FULLWIDTH EQUALS SIGN)而不是常規等號(U + 003D)。從堆棧跟蹤,我說,你需要檢查「等於」的牌子,你有/Users/feel989/idyll/config/environments/production.rb線32

相關問題