How to use RubyMine choose Ruby interpreter

How to choose RubyMine Ruby interpreter and installation? Below introduce you to RubyMine tips, I hope for your help.

After opening the project, it is necessary to select and install Ruby interpreter Gemfile project dependencies specified:

1 Press ^⌥S (shift + option + S) to open the "Settings / Preferences" dialog box, go to the "language and framework" | Ruby SDK and Gems page and select the desired interpreter.11140135_81af8262dd.png

In this tutorial, we use RVM to manage the Ruby interpreter. You can also use an interpreter by a different version of the Manager, or using the operating system's package management system to install.

Click OK.

2 Now, let's install Gemfile specified in the gem. RubyMine allows you to use Bundler to manage gem. To Ann *** undler, press ^ twice and enter the following command: gem install bundler.11140141_68878c1b2e.png

Run Anything / gem install bundler
press, ⏎ then wait until the Bundler gem installed.

3 Now you can use the command in RubyMine in Bundler. To install the gem, please press ^ again twice and start typing bundle install. Then, select the bundle install command from the list, then press ⏎.11140149_3601b744a2.png

In the "Bundle Install" box, click "Install".

4 bundled installation dialog boxes
until RubyMine install all the gems.11140158_f3b8eab8bc.png

5 Run the tool window / installation gem now we can try some of the features in the editor.11140202_05d04c89cc.png


Guess you like

Origin blog.51cto.com/14370425/2437773