I am very new in Rails. after I created a new rails project.
rails new test project
I ran
rake db:create
In
Have you tried to gem install bundler
? I'd be surprised it doesn't install when you install the rails gem, but it seems that's your issue...
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.
In your Gemfile, under group :test do add gem 'rack'.
I just had the same issue. I didn't solve it fully but by running:
bundle exec rake <task>
I was able to finally run the task I wanted without the error you have.
Got the same missing bundler message running rake after upgrading to Ruby 1.9.2.
Rake needed updating and bundler needed to be reinstalled:
sudo gem update rake
sudo gem install bundler
Reinstalling bundler might have fixed the error, but you want to make sure rake is right too.
try
gem install bundler
bundle install
to install the gems needed.
rake tasks will fail if you do not have the gems necessary for the rails app.