module ActionView::Layouts

def action_has_layout?

to false before rendering.
for that action or set the action_has_layout attribute
either override this method in your controller to return false
current action so that it is rendered without a layout then
If you want to disable any layout settings for the
Controls whether an action should be rendered using a layout.
def action_has_layout?
  @_action_has_layout
end