I installed Rails 3.2.3 and Ruby 1.9.3 going through this solution - http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/. It\'s really amazing and effortless. There
When gem installed locally, just add the path to the SDK:
for example: ~/.gem/ruby/2.2.0/gems
on File
> Project Settings
> Platform Settings
> SDKs
> Classpath
(press +
button)
When you close and open again you will get a notification saying:
RubyMine Gem Manager: RubyMine has detected that some of the gems required for 'projectName' are not installed. Install
Click Install
and it will run the bundle install for the project, all got solved after that.
This may help for rubymine.
You need to add ruby sdks
In RubyMine from file -> settings -> ruby Sdk and Gems -> add sdk
You can add multiple ruby version sdks and its gems
You can edit project specific ruby setup after starting project from menu
run -> edit configuration -> ruby sdk (select specific rails environment)
$ which ruby #to get current ruby path
For posterity: don't select a Ruby version from the wrappers folders that are generated by rvm. Ruby thinks it's OK, but you get the Rails error.