To do this, click the Edit Path Mappings button in the Ruby SDK and Gems page:
This requires configuring mappings between files of a local and remote project. If you are using a remote Ruby interpreter, IntelliJ IDEA uses the Gemfile placed on a remote machine to install the gems. You can see the installed gems in the Project Settings | Modules | Ruby SDK and Gems Ctrl+Alt+Shift+S page.Īnd you can also find them in the External Libraries node of the Project view Alt+1: The Run tool window will display this process: IntelliJ IDEA processes this configuration file to detect that gems are installed into vendor/bundle. path vendor/bundle: install gems to the vendor/bundle project directory.
without production: install all gems except ones mentioned in the production group within the Gemfile. If necessary, pass the required arguments when running this command, for example: In the Bundle Install dialog, click Install to run the bundle install command without any arguments. (Optional) If the current project interpreter does not have the required Bundler version specified in Gemfile.lock, IntelliJ IDEA suggests installing it. Select Install missing gems using 'bundler' and press Enter. Open the Gemfile, place the caret at any highlighted gem missing in the project SDK and press Alt+Enter. Select Tools | Bundler | Install from the main menu. In the invoked popup, start typing bundler, select bundle install and press Enter. You can install gems defined in the Gemfile to the project interpreter as follows: Select Tools | Bundler | Init from the main menu.Ĭreating a new Rails application initializes Bundler automatically since Rails has support for Bundler. Bundle initĪfter installing Bundler, you can generate a Gemfile for the current project: You can also install the Bundler gem along with other gems from the Gemfile. Open the IntelliJ IDEA terminal emulator and execute the gem install bundler command. Press Ctrl twice and execute the gem install bundler command in the invoked popup. Select Tools | Bundler | Install Bundler from the main menu. If not, you can install Bundler to the project SDK in one of the following ways: Install BundlerĪs a rule, the installed Ruby interpreter comes with Bundler installed. IntelliJ IDEA supports integration with Bundler and enables you to handle gem dependencies for your application right inside the IDE.