I am learning Ruby on Rails and I followed the installation of RVM and Rails from Ryan Bigg's blog and the Agile Wed Development book. This has worked previously on my PC at home, but at work it gives me the error:
depot$ rails -v
Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
I am trying to generate a scaffold but this is what i get:
depot$ rails generate scaffold Product \ title:string description:text image_url:text price:decimal
Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
I have sqlite3 installed, RVM 1.9.2-p320, and running on Ubuntu 11.04.
Any ideas what can be causing this and how to fix it?
bundle installlike it told you two (twice)? If so what happened?Could not locate Gemfilebundle installin your app directory or elsewhere? What is the output ofrvm current&which rails?bundle installfrom the app directory now, and it installed.rvm currentisruby-1.9.2-p320, andwhich railspoints to....rvm/gems/ruby-1.9.2-p320/bin/railsbundle installfrom within the app directory worked and I just created the scaffold. But what happened here? On my PC at home I did the exact same thing as I did here, but I didn't get that error.