Just for information, the Balloons site (http://balloon.hobix.com) raises an Camping error. I tried to blow a balloon (''blow blow'') and the answer is "balloon not found". Seems that the MySQL server has crashed ! _why, will you get some time to fix this ( or is it due to temporary maintenance) ? BTW, Camping would be nice to develop a small ''rescue server'' (on an error of the main server, redirection to an context-analysis-capable app... could be an idea). Have a nice day everybody. -chickenkiller
why the lucky stiff
2006-Jul-17 21:25 UTC
Overriding 500 (was Re: Where are the balloons ?)
On Mon, Jul 17, 2006 at 05:05:10PM +0200, Lionel Orry wrote:> BTW, Camping would be nice to develop a small ''rescue server'' (on an error of the main server, redirection to an context-analysis-capable app... could be an idea).You can override the ServerError class to show something else if you''re not into Camping Problem! modules Balloon::Controllers class ServerError def get(klass, meth, err) @status = 500 render :no_camping_problem end end end module Balloon::Views def no_camping_problem div { ... } end end The nice thing about this approach is that is picks up your layout. The bad thing about this is that if your ServerError override throws an error, things will really go dark. _why
Then we would need a rescue of the rescue.. Hmm. -- Cheers, zimbatm http://zimbatm.oree.ch
Indeed I am not into dark things, let''s keep it simple and clear. That''s the philosophy after all, isn''t it ? regards why the lucky stiff wrote:> On Mon, Jul 17, 2006 at 05:05:10PM +0200, Lionel Orry wrote: >> BTW, Camping would be nice to develop a small ''rescue server'' (on an error of the main server, redirection to an context-analysis-capable app... could be an idea). > > You can override the ServerError class to show something else if you''re not into > Camping Problem! > > modules Balloon::Controllers > class ServerError > def get(klass, meth, err) > @status = 500 > render :no_camping_problem > end > end > end > > module Balloon::Views > def no_camping_problem > div { ... } > end > end > > The nice thing about this approach is that is picks up your layout. The bad > thing about this is that if your ServerError override throws an error, things > will really go dark. > > _why > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >