Rails uses incorrect version of ruby -


when run rails application, running older version of ruby:

[2012-06-04 16:34:29] info  ruby 1.8.7 (2010-08-16) [x86_64-linux] 

i want run ruby 1.9.2. have rvm installed ruby version selected. here output of rvm list:

rvm rubies  =* ruby-1.9.2-p318 [ x86_64 ]    ruby-1.9.3-p125 [ x86_64 ] 

it's not working, though. here path:

/usr/local/bin:/usr/bin:/bin:/home/charlie/.rvm/bin:/var/lib/gems/1.8/bin/:/usr/local/bin/:/usr/local/rvm/lib/:/vendor/bundle/ 

here .bashrc:

path=$path:$home/.rvm/bin # add rvm path scripting path="${path}:/var/lib/gems/1.8/bin/" path="${path}:/usr/local/bin/" path="${path}:/usr/local/rvm/lib/" path="${path}:/vendor/bundle/" 

i'm assuming you're trying run development server, right? can create .rvmrc inside rails app root folder:

rvm use 1.9.2-p318 

this way, everytime cd rails app, you'll have right environment loaded. may consider creating gemset project.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -