Re: [Rails] Best place to put methods containing raw sql code

2011-05-24 Thread Jamey Cribbs
On Tue, May 24, 2011 at 4:58 PM, Kevin 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 querie

Re: [Rails] Best place to put methods containing raw sql code

2011-05-24 Thread Colin Law
On 24 May 2011 22:00, David Kahn wrote: > > > On Tue, May 24, 2011 at 3:58 PM, Kevin 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

Re: [Rails] Best place to put methods containing raw sql code

2011-05-24 Thread David Kahn
On Tue, May 24, 2011 at 3:58 PM, Kevin 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 querie

[Rails] Best place to put methods containing raw sql code

2011-05-24 Thread Kevin
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 midd