我要回到旧的2.3.4 Rails应用程序,我收到此错误,不知道从哪里开始。当我运行rake任务时,我也会得到这个。这是跟踪
NoMethodError: undefined method `name' for "abstract":String
/Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/rails/gem_dependency.rb:268:in `=='
/Library/Ruby/Site/1.8/rubygems/dependency.rb:217:in `==='
/Library/Ruby/Site/1.8/rubygems/dependency.rb:217:in `matching_specs'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `find_all'
/Library/Ruby/Site/1.8/rubygems/specification.rb:410:in `each'
/Library/Ruby/Site/1.8/rubygems/specification.rb:409:in `each'
/Library/Ruby/Site/1.8/rubygems/dependency.rb:216:in `find_all'
/Library/Ruby/Site/1.8/rubygems/dependency.rb:216:in `matching_specs'
/Library/Ruby/Site/1.8/rubygems/dependency.rb:238:in `to_specs'
/Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
/Library/Ruby/Site/1.8/rubygems.rb:1208:in `gem'
/Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/rails/gem_dependency.rb:73:in `add_load_paths'
/Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:301:in `add_gem_load_paths'
/Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:301:in `each'
/Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:301:in `add_gem_load_paths'
/Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:132:in `process'
/Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `send'
/Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run'
~/Sites/Volunteer/app/config/environment.rb:7
~/Sites/Volunteer/app/config.ru:1:in `require'
~/Sites/Volunteer/app/config.ru:1
~/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/lib/nack/builder.rb:4:in `instance_eval'
~/Library/Application Support/Pow/Versions/0.3.2/node_modules/nack/lib/nack/builder.rb:4:in `initialize'
~/Sites/Volunteer/app/config.ru:1:in `new'
~/Sites/Volunteer/app/config.ru:1
关于我应该从哪里开始修复它的任何想法?感谢。
答案 0 :(得分:2)
虽然它不是同一个错误,但它可能与Rubygems的不兼容版本有关。尝试降级Rubygems或将rails升级到2.3.14。