RubyMine 2018.2 Help

Configuring Ruby Interpreter

RubyMine enables you to choose the required Ruby interpreter for a current project or newly created projects. The IDE automatically detects interpreters installed on a local machine and maintained by version managers. Moreover, you can add additional local or remote interpreters (Docker, Vagrant, SSH, etc.).

The following interpreters are supported:

  • Ruby MRI (version 1.8.7 and later)
  • JRuby
  • Rubinius (without debugging)

Select Ruby Interpreter

To configure Ruby SDK for the current project, follow these steps:

  1. Invoke the Settings/Preferences dialog (Ctrl+Alt+S) and go to the Ruby SDK and Gems page.
  2. (Optional) If RubyMine has multiple projects opened, select the required one to define a Ruby interpreter.
  3. Choose the required Ruby interpreter. You can also choose the gemset for the RVM and rbenv version managers.
    rm local sdk gems page
  4. For the selected Ruby interpreter/gemset, you can see the installed gems on the right. Learn more about Ruby gems support at Ruby Gems Support.

Add Local Ruby Interpreter

RubyMine automatically detects local interpreters installed using version managers. To add the required local interpreter manually, perform the following steps:

  1. In the Ruby SDK and Gems page, click the icons general add svg button and select New local…:
    rm add local ruby interpreter
  2. Provide a path to the Ruby executable (for example, /usr/local/bin/ruby for Ruby installed to macOS using Homebrew). RubyMine will display the selected interpreter along with automatically detected interpreters.
    rm local sdk gems page brew
  3. To remove the interpreter from the list, select it and click the icons general remove svg button.

Add Remote Ruby Interpreter

To configure a remote Ruby interpreter, follow these steps:

To configure a remote Ruby interpreter, follow these steps:

  1. In the toolbar, clickicons general add svg, and choose New remote...:
    rm add remote ruby interpreter
  2. In the Configure Remote Ruby Interpreter dialog box, select the desired option (Deployment configuration, SSH Credentials etc.) and specify the required settings.
    configure remote ruby interpreter dialog
Last modified: 31 August 2018

See Also


Language and Framework-Specific Guidelines: