Turn off layout for one of action Turn off layout for one of action ruby-on-rails ruby-on-rails

Turn off layout for one of action


This should do it,

def view    ...    render :layout => falseend

Link to Documentation


Try this:

ReportsController < ApplicationController  layout false  layout 'application', :except => :view


In the respond block, add layout: false.

For example:

respond_to do |format|  format.html { render :layout => false } # your-action.html.erbend