这是运行'rails c production'错误时出错的错误
/Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in method_missing': undefined method
='for#(NoMethodError)
来自/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
'
来自/Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in require'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in
阻止在'需要'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in load_dependency'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in
require'
from /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
each'
来自/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'
来自/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
块中的run_initializers'
来自/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:150:in block in tsort_each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:183:in
块(2个级别)in each_strongly_connected_component'
来自/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/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'
来自/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
每个'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/initializable.rb:44:in tsort_each_child'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:203:in
each_strongly_connected_component_from'
来自/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:182:in 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
每个'
来自/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'
来自/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
初始化!'
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
'
来自/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!'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:61:in <top (required)>'
from bin/rails:4:in
require'
来自bin / rails:4:在''
答案 0 :(得分:0)
显然你使用的是Unicode字符U + FF1D(FULLWIDTH EQUALS SIGN)而不是常规的等号(U + 003D)。从堆栈跟踪中,我说您需要检查/Users/feel989/idyll/config/environments/production.rb
第32行中的“等于”符号。