Hi
I have installed Ruby 1.9.2 and upgraded Rails to 3.0.4 (Mac OS X
10.6). Running "ruby -v" this is the output:
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]
Running "which ruby", the output is:
/usr/local/ruby1.9/bin/ruby
The problem is then I'm starting the WEBrick server with "rails
server":
[2011-02-27 10:56:13] INFO WEBrick 1.3.1
[2011-02-27 10:56:13] INFO ruby 1.8.7 (2009-06-12) [universal-
darwin10.0]
[2011-02-27 10:56:13] INFO WEBrick::HTTPServer#start: pid=21069
port=3000
Why is Ruby 1.8.7 used, and what to do to have WEBrick using Ruby
1.9.2 instead?
Hi
I have installed Ruby 1.9.2 and upgraded Rails to 3.0.4 (Mac OS X
10.6). Running "ruby -v" this is the output:
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]
Running "which ruby", the output is:
/usr/local/ruby1.9/bin/ruby
The problem is then I'm starting the WEBrick server with "rails
server":
[2011-02-27 10:56:13] INFO WEBrick 1.3.1
[2011-02-27 10:56:13] INFO ruby 1.8.7 (2009-06-12) [universal-
darwin10.0]
[2011-02-27 10:56:13] INFO WEBrick::HTTPServer#start: pid=21069
port=3000
Why is Ruby 1.8.7 used, and what to do to have WEBrick using Ruby
1.9.2 instead?
I'd guess that you have both ruby 1.8.6 and 1.9.2 installed, both are
on the path but you've only installed the rails gem for ruby 1.8.7, so
while 'ruby' finds 1.9.2, running 'rails' finds the one installed with
ruby 1.8.7. If you install rails in your ruby 1.9.2 environment you
should be ok.
It looks for a newbie like me alright (except the "1.9.1". Should it
not be 1.9.2 ?). So, I did a "gem install rails". Then restarted
Terminal, did a "bundle update". And.. Yes! Now it is using Ruby
1.9.2 :=)