My situation: View action of ReportsController should render pure html, but not as a file (to view it in browser and save it after). So for rendering I use view template vie
In the respond block, add layout: false.
layout: false
For example:
respond_to do |format| format.html { render :layout => false } # your-action.html.erb end