On Tue, May 24, 2011 at 4:58 PM, Kevin <darkint...@gmail.com> wrote: > I'm porting a bunch of sql queries used to generate reports of various > kinds. I have a report controller that has no model and will contain all > the actions that display report results. Where should I stick my wrapper > methods for these queries. I don't like having them stuck right in the > middle of my controller action code. Would the helper module for the report > controller be a good place? > > A model does not necessarily have to have an associated table. It is still the place you want to put business logic. So, go ahead and create a model for this stuff, just don't have it inherit from ActiveRecord::Base. It won't inherit from anything.
Jamey -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.