New information
This is what happens with rails console
:
Loading development environment (Rails 3.1.1)
ruby-1.9.2-p290 :001 &
Man, I was having this exact problem and the way I solved it was by reinstalling bundler. It seems that bundler was caching the RUBY_VERSION to 1.8.7.
I'm not using rvm, I had to use this to set the default ruby version:
sudo update-alternatives --config ruby
sudo update-alternatives --config gem
And then, I reinstalled bundler and it worked!
Hopefully you can solve it with this approach