New to Ruby and Rails, and I’m hitting a snag getting set up. I installed Ruby with MacPorts, then used gem to install rails. They both appear to be the correct versions:
$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11]
$ rails --version
Rails 3.1.1
However, whey I make a demo rails app with ‘rails new demo’ and then take a look at it with ‘rake about’, it looks like the ruby version is still 1.8:
About your application's environment
Ruby version 1.8.7 (universal-darwin11.0)
RubyGems version 1.8.11
Rack version 1.3
Rails version 3.1.1
I have verified that i have a symlink early in my $PATH pointing to the version of ruby I want (/opt/local/bin). How do I get rails to use ruby 1.9? thanks
I recommend you uninstall ruby from macports and try to do an installation using RVM instead.
http://beginrescueend.com/
In regards of your problem, it may probably be a path issue with Bundler executing the system rake command instead of the bundler.
Try running bundle exec rake about and see what happens.