For me, the problem was that RubyMine expected me to use ruby โโ1.9.3 (which did not have rails gem installed) when I actually used 2.1.0. I installed it by opening the settings by clicking Languages & Frameworks
> Ruby SDK and Gems
, selecting RVM: ruby-1.9.3, and then clicking the minus button at the bottom of the window to remove it. I did this for the global ruby-1.9.3.
This forces RubyMine to use ruby-2.1.0 and its gemset, which solved all my problems :-)
source share