app/controllers/application_controller.rb
#checks to see if the action should be rendered without a layout. optionally pass it another action/controller
checks to see if the action should be rendered without a layout. optionally pass it another action/controller
checks to see if the action should be rendered without a layout . optionally pass it another action / controller
def layout_check(action = action_name, controller = controller_name)
    if params[:layout] == "false"
      render controller: controller, action: action, layout: false
    end
  end
def layout_check ( action = action_name , controller = controller_name ) if params [ :layout ] == "false" render controller : controller , action : action , layout : false end end
checks to see if the action should be rendered without a layout.
checks to see if the action should be rendered without a layout .
action
action_name
controller
controller_name