我最终得到了这个错误:
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
require': cannot load such file -- bundler/setup (LoadError) from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
需要from /vagrant/config/boot.rb:6:in
from bin/rails:3:in
require_relativefrom bin/rails:3:in
`
我正在使用流浪汉环境,这是执行命令的流程
$ vagrant up
$ vagrant ssh
$ cd /vagrant/
$ bundle
$ rake db:create
$ rake db:migrate
然后进行测试:
$ rspec spec
运行它:
$ rails s