Neville Burnell
2005-Jul-25 00:18 UTC
Best way to structure a psuedo multi-app rails app ?
Imagine an accounting application, which has say 3 "modules", accounts receivable, accounts payable, and inventory. Each "accounting module" might have several controllers. For example, inventory might have a reports controller, and a stock take controller. Whats the best way to structure this such that each "accounting module" has can share certain things, like say the "top menu": Should I: A) create a root accounts_receivable_controller [etc] and inherit each accounts receivable "sub module" from that. B) simply use convention, and extract the "accounting module" from a controller name, ie, accounts_receivable_reports_controller by convention belongs to the accounts_receivable module, and then get the shared stuff from somewhere else ? C) use some other approach ? Thanks Nev _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi, have you looked at the "productization" of rails application ? http://article.gmane.org/gmane.comp.lang.ruby.rails/14513 This might help in that it will share the model and base controllers, then each specific module is a productization of the main app ... jean On 7/25/05, Neville Burnell <Neville.Burnell-uEDVyssJ3mUpAS55Wn97og@public.gmane.org> wrote:> > > Imagine an accounting application, which has say 3 "modules", accounts > receivable, accounts payable, and inventory. > > Each "accounting module" might have several controllers. For example, > inventory might have a reports controller, and a stock take controller. > > Whats the best way to structure this such that each "accounting module" has > can share certain things, like say the "top menu": > > Should I: > > A) create a root accounts_receivable_controller [etc] and inherit each > accounts receivable "sub module" from that. > > B) simply use convention, and extract the "accounting module" from a > controller name, ie, accounts_receivable_reports_controller > by convention belongs to the accounts_receivable module, and then get the > shared stuff from somewhere else ? > > C) use some other approach ? > > Thanks > > Nev > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >