Robin Hughes
2007-Jul-31 16:04 UTC
Aggregate Models that don''t correspond directly to DB table
Hello, I am having trouble deciding whether to make some classes part of the model or the controller. These objects will represent rollups of various joined database tables. I want to use them to build up a tree structure to make it easier to drill through reports compiled over hundreds of thousands of database rows. I don''t want to persist the rollups. I just want to store them in the session hash. I plan to use ActiveRecord::Base.connection.select_all inside the objects to populate themselves. Are these objects part of the Model or the Controller? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---