Re: how do i customize the 404 campin problem page?
Sorry for the late reply. Here's how you override the 404: module YourApp def r404(path) My custom 404 end end // Magnus Holm On Tue, Dec 10, 2013 at 12:32 PM, Francois Sery sery.franc...@gmail.com wrote: Bonjour, one more newbie question: how do i customize the 404 campin problem page? i cant' find the answer anywhere else. i've read about the @status and @headers but i don't kwow how to capture the error ? maybe a special route ? Thanks again for your help ! ___ 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
Re: how do i customize the 404 campin problem page?
Thanks judofyr Le 31 déc. 2013 16:03, Magnus Holm judo...@gmail.com a écrit : Sorry for the late reply. Here's how you override the 404: module YourApp def r404(path) My custom 404 end end // Magnus Holm On Tue, Dec 10, 2013 at 12:32 PM, Francois Sery sery.franc...@gmail.com wrote: Bonjour, one more newbie question: how do i customize the 404 campin problem page? i cant' find the answer anywhere else. i've read about the @status and @headers but i don't kwow how to capture the error ? maybe a special route ? Thanks again for your help ! ___ 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 ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
Re: Multiple camping apps in the same rackup?
Can you match on top level domains? On Wed, Jan 1, 2014 at 1:05 AM, Magnus Holm judo...@gmail.com wrote: Sorry for the late reply. The easiest way is to use a config.ru file (this is how you probably run your Camping app anyway): # in config.ru map /hello do run Hello end map /sinatra do run Sinatra::Application.new end // Magnus Holm On Sun, Dec 8, 2013 at 12:41 PM, Tim Uckun timuc...@gmail.com wrote: The camping book says this You can also use Rack::URLMap to plug a whole bunch of different apps in to one folder. A camping app here, a rails project there, a sinatra doodad over there in the corner messing up the whole global namespace. The possibilities are severely limited! Does anybody have an example of how to do this? Thanks. ___ 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 ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list