Read more

RubyMine: Accessing views and partials from controllers

Arne Hartherz
August 21, 2012Software engineer at makandra GmbH

You can quickly access views that belong to a controller by using the tiny "page with arrow" icon in the gutter: icon

Access a method's view file

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Click the icon next to the method definition in the controller.

If a view file does not yet exist, RubyMine will prompt you for its filename.

All views & partials associated to a controller

For a list of all views and partials that belong to the current controller, do this:

  1. Click the icon in the line where the controller class is defined (usually the first). \
    First step
  2. Then, choose from a list of files. \
    Second step

From views to controllers

Note that you can also go "up", to the controller, using a similiar icon in the first line of a view. icon

Posted by Arne Hartherz to makandra dev (2012-08-21 11:04)