Helpful hint for using help

Maybe everyone knows this but me. But, lets say I want to understand
“layout”.

I do “ri layout” and it gives me a very short paragraph.

The module that layout is in is ActionController::Layout::ClassMethods
(ri tells you this at the top of the screen).

Doing “ri ActionController::Layout::ClassMethods” provides a boatload of
information.

Before, I tried “ri ActionController::Layout” but I never thought to add
ClassMethods to it.

HTH
Perry

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs