I have a web app which has a global layout file (application.html.erb). When I encounter a 404 or 500 error the corresponding error page is rendered inside the layout file.
I want to prevent this from happening and render outside the layout but I can't figure out where to put the render :layout => false call. Can anyone help?