How can I print out the name of current layout in a view?
Example
puts controller.current_layout
Thx
How can I print out the name of current layout in a view?
Example
puts controller.current_layout
Thx
<%= controller.active_layout %>
gets you the layout file name. So layout 'application'
would return layouts/application.html.erb
In Rails 2.1.0 and greater.