Re: 2 differents layout for my app

2013-12-31 Thread Magnus Holm
Yeah, I would probably have two different apps which connects to the same database (and possibly uses the same models). // Magnus Holm On Tue, Dec 10, 2013 at 4:10 PM, Francois Sery wrote: > @deveritt: i dont want to switch css. My app has a "front end" and an "admin > ". > The front end is the

Re: how do i customize the 404 "campin problem" page?

2013-12-31 Thread Magnus Holm
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 wrote: > Bonjour, > one more newbie question: how do i customize the 404 "campin problem" page? > i cant' fi

Re: Multiple camping apps in the same rackup?

2013-12-31 Thread Magnus Holm
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 Uc

Re: how do i customize the 404 "campin problem" page?

2013-12-31 Thread Francois Sery
Thanks judofyr Le 31 déc. 2013 16:03, "Magnus Holm" 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 > wrote: > > Bonjour,

Re: Multiple camping apps in the same rackup?

2013-12-31 Thread Tim Uckun
Can you match on top level domains? On Wed, Jan 1, 2014 at 1:05 AM, Magnus Holm 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