I have an Ubuntu machine with Ruby 1.8 installed.
I copied my Rails application to it, and did bundle install. It installed everything fine. The application requires Ruby 1.9, so I downloaded the Ruby source, compiled, and installed it.
When I do ruby -v, I get ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux], but when I do RUBY_VERSION on rails console, I get 1.8.7. When I try to run my Rails application, it fails. My Rails application is using the older version of Ruby even when from the console and everywhere else it works fine. Heck, I even created a new Rails application and it uses a newer version.
Any ideas what's going on?
Wait... you actually compiled it from source? You most likely have the new version of ruby in your console path but you application dosnt have it. Uninstall ruby from your system and use RVM that way you have something managing your ruby versions.