When I try to create Rails Application with RubyMine, it fails with message "Unable to run gem 'rails'. Cannot find 'rails'". Why? And how to solve it?
RubyMine's version is 4.0.2.
There's some information about my system:
$ ruby -v ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] $ gem -v 1.8.11 $ uname -a Linux somehost 3.2.0-2-amd64 #1 SMP Tue Mar 20 18:36:37 UTC 2012 x86_64 GNU/Linux $ lsb_release -d Description: Debian GNU/Linux testing (wheezy) $ rails -v Rails 3.2.3
Here's output of gem list --local: http://pastebin.com/CymzGUpf
RubyMine see the same set of gems: http://ompldr.org/vZGM2eA
Other IDEs for Ruby and Ruby on Rails (Eclipse with plugin DLTK-Ruby, Netbeans) work fine.
What do I do wrong?