I am very new in Rails. after I created a new rails project.
rails new test project
I ran
rake db:create
In
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.