操作系统是Ubuntu 12.04,64位。 新的铁路。 相对较新的Ruby。 遵循ruby.railstutorial.org教程,第3章。 本教程已更新为使用ruby 2.0.0和Rails 4.0.0.rc1。 以前gemfile是指定Rails 3.2.13,而不是指定Ruby版本。 在学习本教程中的最新Gemfile之后,使用ruby 2.0.0和Rails 4.0.0.rc1,运行rails命令时出现以下错误。 这里的例子是rails服务器 user@machine:~/bin/railslearn/sample_app$ rails server /home/paul/bin/railslearn/sample_app/config/application.rb:7:in `require': cannot load such file — active_resource/railtie (LoadError) from /home/paul/bin/railslearn/sample_app/config/application.rb:7:in `<top (required)>' from /home/paul/.rvm/gems/ruby-2.0.0-p195@railstutorial_rails_4_0/gems/railties-4.0.0.rc1/lib/rails/commands.rb:78:in `require' from /home/paul/.rvm/gems/ruby-2.0.0-p195@railstutorial_rails_4_0/gems/railties-4.0.0.rc1/lib/rails/commands.rb:78:in `block in <top (required)>' from /home/paul/.rvm/gems/ruby-2.0.0-p195@railstutorial_rails_4_0/gems/railties-4.0.0.rc1/lib/rails/commands.rb:75:in `tap' from /home/paul/.rvm/gems/ruby-2.0.0-p195@railstutorial_rails_4_0/gems/railties-4.0.0.rc1/lib/rails/commands.rb:75:in `<top (required)>' from script/rails:6:in `require' from script/rails:6:in `<main>' 我确实从Rails得到了一些想法:无法find下面列出的railties ,但还没有find解决办法。 这是细节。 […]