I\'ve found numerous resources for Rails 3, but none for Rails 4:
In an effort to keep things DRY, we have a method which defines some meta tags. I\'d like to incl
For me in Rails 6 the current_layout
method would look like this
def current_layout
self.controller.send :_layout, self.lookup_context, []
end
I believe the array is a list of formats used. The method _layout
is build dynamically and I'm not sure what it's expecting in the formats
parameter, but I got my desired behaviour with just an empty array
Hope this helps.