RubyMine 2017.1 Help

Navigating to Controllers, Views and Actions Using Gutter Icons

In the editor, use the following gutter icons to jump between controllers, views, and actions:

  • /help/img/idea/2017.1/ruby_gotoControllerIcon.png: This layout is associated with a controller.
  • /help/img/idea/2017.1/ruby_gotoActionIcon.png: This layout is associated with an action.
  • /help/img/idea/2017.1/ruby_gotoViewIcon.png: This action is associated with a view, or this controller is associated with a partial view.

The target component is opened in the editor tab.

To navigate between Rails components in the editor

  • Open a component in the editor, and click the desired gutter icon. For example, if you want to jump to a view file associated with an action, open the corresponding controller, locate the desired action, and click the gutter icon next to the action definition.

    If several different types of views are available (for example, localized views or HAML files), RubyMine suggests the list of all available views, from which you can select the one you need:

    /help/img/idea/2017.1/ruby_navigateToViewLocalized.png

    To navigate from a view to the corresponding action, open the view file in the editor, and click the gutter icon:

    /help/img/idea/2017.1/ruby_navigateToAction.png

See Also

Concepts:

Last modified: 18 July 2017