RubyMine: Accessing views and partials from controllers

Updated . Posted . Visible to the public.

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

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

Arne Hartherz
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Arne Hartherz to makandra dev (2012-08-21 09:04)