当我运行bundle exec rake db:migrate
时,我得到以下输出:
NoMethodError: private method `gem' called for
<Rails::Application::Configuration:0x007ffa0312c410>
rvm/gems/ruby-2.2.3/gems/railties-4.2.6/lib/rails/railtie/configuration.rb:95:in `method_missing'
/config/application.rb:24:in `<class:Application>'
版本
gem 'rails', '4.2.6'
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
我尝试过不同的ruby版本,不同的rails版本,重建我所有的宝石,没有任何运气。