我刚开始从Hartl" Ruby on rails 3学习Ruby on Rails:通过示例学习Rails" (但我确实有轨道4.2.5)。一切顺利,直到我尝试部署到Heroku - 无法通过$ git push heroku master
,所以我找到了这个https://devcenter.heroku.com/articles/getting-started-with-rails4#local-workstation-setup并按照这些说明重新开始。除了`
$ rails generate controller welcome`
`/Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file --
bundler/setup (LoadError)
from /Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/commands.rb:33:in `<module:Spring>'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/commands.rb:4:in `<top (required)>'
from /Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:77:in `preload'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:143:in `serve'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:131:in `block in run'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:125:in `loop'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application.rb:125:in `run'
from /Users/liisvaljaots/myapp/vendor/bundle/gems/spring-1.6.1/lib/spring/application/boot.rb:18:in `<top (required)>'
from /Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/liisvaljaots/.rbenv/versions/2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from -e:1:in `<main>'`
我已经在这个问题上搜索了所有人,也许这里有人可以提供帮助。
另外,另一个可能相关的问题是当我打开它时{Terminal = {1}}
谢谢!