module MyApp def r404(path) "404: #{path}" # or you can render a template: render :four_oh_four end end
There's also r500(klass,method,exception) which gets called when an exception happens, and r501(method) which gets called when a route is found, but the controller doesn't have the method. // Magnus Holm On Thu, Oct 13, 2011 at 21:25, Nokan Emiro <uzleep...@gmail.com> wrote: > How can I hide/catch the "Camping problem! /xxx not found" pages? > It would be great to define my own handler instead, or simply > redirect to the root of my app. > > > _______________________________________________ > Camping-list mailing list > Camping-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > _______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list