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

Reply via email to