RubyMine 7.0.1 Web Help

For each Rails application project, RubyMine provides default Rails run/debug configurations for the production and development environments.

RubyMine supports a number of Rails servers (Mongrel, WEBrick, Phusion Passenger, etc., depending on the specific platform).

Rails server runs in the dedicated tab of the Run tool window, named after the respective run/debug configuration. So doing, the server output is displayed in the Console tab, and the other information is displayed in the Server <environment type> log tab:

Click thumbnail to view larger image.

To run a Rails server
  1. Press Shift+Alt+F10Shift+Alt+F10Shift+Alt+F10Shift+Alt+F10Shift+Alt+F10Shift+Alt+F10Shift+Alt+F10Shift+Alt+F10⌘+RControl Alt RShift Alt F10Control Alt R⌘ F8, and choose the desired Rails run/debug configuration type:


  2. If necessary, change the run/debug configuration settings. To do that, choose Edit configurations... in the Run pop-up menu, and choose the desired Rails configuration type.

    Rails run/debug configuration dialog box appears.

    In this dialog box, modify the desired settings. For example, RubyMine suggests WEBrick as the default Rails server. You can select a different server from the list of supported servers.

  3. Click the img button on the main toolbar.


You can opt to preview results of your Rails application immediately in a browser. For this purpose, change the selected Rails run/debug configuration to enable launching a built-in browser. To do it, select the Run browser check box, and specify the desired IP address in the text field:

Rails run/debug configuration
Click thumbnail to view larger image.

See Also




Web Resources: