Rake aborted! no such file to load --bundler/setup Rails 3.1

前端 未结 9 844
慢半拍i
慢半拍i 2021-02-04 23:41

I am very new in Rails. after I created a new rails project.

rails new test project

I ran

rake db:create 

In

9条回答
  •  情书的邮戳
    2021-02-05 00:09

    I got the same error as you while upgrading a non-rails project from Ruby 1.8.x to Ruby 1.9.x. The problem is that the current dir has been removed from LOAD_PATH.

    Why does Ruby 1.9.2 remove “.” from LOAD_PATH, and what's the alternative?

    I had to change a few places from require to require_relative and then it worked.

提交回复
热议问题