How can I print the name of the current layout?

Suppose I have a controller with:

layout “my-layout”

How can I print the name of the current layout, later on?

The following don’t work:

<%= layout %>
<%= params[‘layout’] %>
<%= @layout %>

Where is the value for the current layout stored?

Any help, much appreciated.

– John

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