Never mind, guys. I missed it in the archives, but found it via google:
http://rubyforge.org/pipermail/camping-list/2006-July/000063.html
I am doing things right, I just need to render a template instead of
output everything in the controller.
Sorry!
On 1/9/07, Michael Gorsuch <[EMAIL PROTECTED]> wrote:
> I'm getting ready to deploy a production app based on Camping, but
> have one little thing I want to iron out.
>
> Is it possible to override the ServerError class? I need custom 500's
> to come up, and not the normal "Camping Problem!" page.
>
> I am trying to override, just like I do the NotFound class, but can't
> seem to get it to take. I just get a blank page back (with errors to
> the console) when I do this:
>
> module MyApp::Controllers
> class ServerError
> def get(k,m,e)
> @status = 500
> div do
> h1 'Wow! You Broke Me!'
> h2 "in #{k}.#{m}"
> h3 "#{e.class} #{e.message}:"
> ul do
> e.backtrace.each do |bt|
> li bt
> end
> end
> end
> end
> end
> end
>
> Any ideas? Am I just missing something super obvious?
>
> Thanks all,
>
> Michael
>
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list