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
In Rails 5, the code is:
controller.send :_layout, ["some_string_here"]
I don't know why it needs a string in the array but that's what got it working for me. Our helper file looks as follows:
def current_layout
layout = controller.send :_layout, ["test"]
return layout.inspect.split("/").last.gsub(/.haml/,"")
end