Rubymine - Rails gem not found

前端 未结 4 756
旧时难觅i
旧时难觅i 2020-12-15 11:41

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

相关标签:
4条回答
  • 2020-12-15 11:55

    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)

    0 讨论(0)
  • 2020-12-15 11:57

    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.

    0 讨论(0)
  • 2020-12-15 12:06

    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
    
    0 讨论(0)
  • 2020-12-15 12:19

    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.

    0 讨论(0)
提交回复
热议问题