Unable to run gem 'rails'. Cannot find 'rails' Error when creating new Rails project

Hi all,

I'm a newbie in rails development and usage of RubyMine. I'm working on a MacBook Pro with OS-X 10.8.1. I installed Ruby 1.9.3-p194 through RVM and have Rails gems 3.2.6 and 3.2.8 installed. When I recently wanted to create a new rails project in RubyMine, I got an error pop-up "Unable to run gem 'rails'. Cannot find 'rails'. after that I end up with an empty project only containing an hidden .idea folder with some xml files.

here is some info on my configuration:

$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.1.0]
$ gem -v
1.8.24
$ rails -v
Rails 3.2.8
$ whereis rails
/usr/bin/rails
$ whereis ruby
/usr/bin/ruby
$ gem environment

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.24
  - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-darwin12.1.0]
  - INSTALLATION DIRECTORY: /Users/lievenbaeyens/.rvm/gems/ruby-1.9.3-p194
  - RUBY EXECUTABLE: /Users/lievenbaeyens/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/lievenbaeyens/.rvm/gems/ruby-1.9.3-p194/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-12
  - GEM PATHS:
     - /Users/lievenbaeyens/.rvm/gems/ruby-1.9.3-p194
     - /Users/lievenbaeyens/.rvm/gems/ruby-1.9.3-p194@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

maybe interesting to mention is that I can still create rails projects from the command line ... so it feels like a Rubymine config issue?

when I try to run a rails project from within rubymine I get the error message "Error running Development: <projectname>: [No Rails found in SDK]"

thanks for help

Lieven

Please sign in to leave a comment.