I am using rvm, doing the following:
rvm install ree <--- (Ruby Enterprise Edition), or this can be 1.8.7 or 1.9.2
rvm ree
rvm gemset create 'proj'
cd path/to/proj
bundle install
so Gemfile in that project says:
gem 'rails', '3.0.0'
and bundle install
is super fast, reporting
Using rails (3.0.0)
but after that when I type
$ rails -v
/Library/Ruby/Site/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems.rb:214:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:1082:in `gem'
from /usr/bin/rails:18
$ which rails
/usr/bin/rails
so bundle install
doesn't install the rails as a gem?
but if I type script/rails -v
it shows it is 3.0.0