Re: [Rails-core] named_scope - :group (finds first entry?)

2010-10-01 Thread Thiago Cifani
it it is rails 3 I think you could use only, http://www.railway.at/2010/03/09/named-scopes-are-dead/ and Active record querying ?? http://edgeguides.rubyonrails.org/active_record_querying.html On Wed, Sep 29, 2010 at 11:03 AM, Pete wrote: > Hi, > > I am currently a little confused with tryi

Re: [Rails-core] named_scope - :group (finds first entry?)

2010-09-29 Thread Ryan Bigg
Hi Pete, This list is for discussions about the core of Ruby on Rails, such as patches and bug fixes. For general help please ask your question on the rubyonrails-talk mailing list. On 30 September 2010 00:03, Pete wrote: > Hi, > > I am currently a little confused with trying to manipulate a n

[Rails-core] named_scope - :group (finds first entry?)

2010-09-29 Thread Pete
Hi, I am currently a little confused with trying to manipulate a named scope that I currently have. I have two associated models e.g Catalogue, has_many :articles Article: belongs_to :catalogue my named scope looks like this (in Class Article) named scope :finished_articles, { :condi