I've seen other posts with this error going back to 2009, but nothing there helped me. I'm on the latest macOS and Rubymine 2016.3.
The basic issue is that when I try to run my rails project, Rubymine gives me the error: `Error running Development: my_project_name: [No Rails found in SDK]`.
I can run this app fine if I do `rails s` in the terminal.
Here's some basic output:
$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin15]
$ gem list rails
*** LOCAL GEMS ***
autoprefixer-rails (6.7.1, 6.6.1, 18.104.22.168)
dotenv-rails (2.2.0, 2.0.2)
factory_girl_rails (4.8.0, 4.7.0)
font-awesome-rails (22.214.171.124, 126.96.36.199)
jquery-rails (4.2.2, 4.2.1, 4.0.5)
rails-dom-testing (2.0.2, 2.0.1, 1.0.7)
rails_layout (1.0.34, 1.0.29)
sprockets-rails (3.2.0, 3.1.1)
So I have rails there.
When I open the `Ruby SDK and Gems` Settings area, I see a list of ruby versions I have starting with "rbenv: 2.2.0" up to "rbenv: 2.3.3"
In versions 2.3.0 and below, when I look at the gems list, I see lots of gems, one of which is rails, and next to rails is a caret dropdown, that when I click it I see various rails versions (eg. in 2.3.0 when I drop down "rails" I see "rails 188.8.131.52" and "rails 4.2.5". The versions are slightly grayed out compared to the gem names themselves, as a feature of Rubymine.
In version 2.3.3 I see something slightly different. I don't have a "rails" gem, and no drop down caret, but instead I have 3 different gems called "rails-184.108.40.206", "rails-5.0.1", and "rails-4.2.5" and each of them has their own version listed next to them so it read like:
So obviously Rubymine is treating these differently somehow.
I went and looked in the folders containing the actual gems, and there's nothing apparently different about the locations or filenames between different sets of gems. As I mentioned, everything is working fine outside of Rubymine.
So I'm stumped.
In case it matters:
Build #RM-163.9166.34, built on December 15, 2016
Licensed to Pete Michaud
You have perpetual fallback license for this version
Subscription is active until January 29, 2018
JRE: 1.8.0_112-release-408-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o