On Wed, 20 Jun 2012 07:03:43 -0700 (PDT) Shalini Sah <[email protected]> wrote:
> I am a newbie in rails. I am creating a rails app where I query an > existing database consisting of multiple tables. I created a model > file corresponding to each database in the model folder. Now the > problem is I want a consolidated view for all the models. My app will > basically take some inputs from user and generate a summarized view > based on the given inputs by querying multiple tables (and thus > interacting with many models). So shall i create just one controller > and put the entire logic in it?? or can i transfer some logic to > helpers? What would be the ideal design in this case? I think you need a separate model that will aggregate data from others. -- Sincerely yours, Aleksey V. Zapparov A.K.A. ixti FSF Member #7118 Mobile Phone: +34 677 990 688 Homepage: http://www.ixti.net JID: [email protected] *Origin: Happy Hacking!
signature.asc
Description: PGP signature

