# How can I print the name of the current layout?

**URL:** <https://www.ruby-forum.com/t/how-can-i-print-the-name-of-the-current-layout/134192>\
**Category:** Rails\
**Created:** [April 8, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/how-can-i-print-the-name-of-the-current-layout/134192 "2008-04-08T19:40:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 8, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/how-can-i-print-the-name-of-the-current-layout/134192/1 "2008-04-08T19:40:58Z")

</div>

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
