Re: mounting multiples app

2013-05-24 Thread låzaro
I'll try it... thanks Thread name: "Re: mounting multiples app" Mail number: 1 Date: Wed, May 22, 2013 In reply to: David Susco > > That will allow you to host two apps via a single config file. To separate out > your MVCs, try this: > > -- myapp.rb -- > &

Re: mounting multiples app

2013-05-22 Thread David Susco
That will allow you to host two apps via a single config file. To separate out your MVCs, try this: -- myapp.rb -- %w(camping).each { |lib| require lib } Camping.goes :MyApp %w(helpers models views controllers).each { |lib| require lib } module MyApp ... end -- models.rb -- module MyApp::Mod

Re: mounting multiples app

2013-05-22 Thread Magnus Holm
You need to create a custom config.ru: config.ru: require_relative 'app1' require_relative 'app2' map '/app1' do run App1 end map '/app2' do run App2 end // Magnus Holm On Wed, May 22, 2013 at 2:05 PM, låzaro wrote: > Hi, I trying to mount an App but with separetaed model, controller

mounting multiples app

2013-05-22 Thread låzaro
Hi, I trying to mount an App but with separetaed model, controller and view in otrher files. Waht could I do? How these files must be? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list