views:

110

answers:

2

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?

A: 

You can follow these directions to setup a custom 404 page in rails. The same should apply to other errors (500, 403, etc.)

mdemmitt
A: 

Turns out I was using the super exeption notifier plugin which has built in supprt for rendering error templates.

KJF