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 web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
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)