Forum: Ruby on Rails Aggregate Models that don't correspond directly to DB table

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Robin H. (Guest)
on 2007-07-31 20:04
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?
This topic is locked and can not be replied to.