[Rails] Re: AssociationCollection or Array

2010-01-08 Thread cntrytwist
Fred, Thanks for the reply. At the risk of looking like a total newby, what do you mean by dup it? I do appreciate the tip, and will use that to dry up my method a bit. On Jan 7, 4:46 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Jan 7, 11:26 pm, cntrytwist cntrytw...@gmail.com

[Rails] Re: AssociationCollection or Array

2010-01-08 Thread Frederick Cheung
On Jan 8, 1:08 pm, cntrytwist cntrytw...@gmail.com wrote: Fred, Thanks for the reply.  At the risk of looking like a total newby, what do you mean by dup it? Call dup on it. Fred I do appreciate the tip, and will use that to dry up my method a bit. On Jan 7, 4:46 pm, Frederick Cheung

[Rails] Re: AssociationCollection or Array

2010-01-07 Thread Frederick Cheung
On Jan 7, 11:26 pm, cntrytwist cntrytw...@gmail.com wrote: During the @cts.each do block, I am performing more than just adding to the all_contracts array.  How do I dry up the two lines that create the all_contracts array?  I want just an array, not an instance of AsociationCollection. If