[Rails] Re: Re: ActiveRecord::Relation issue

2010-10-18 Thread Marnen Laibow-Koser
Colin Law wrote in post #954800: > On 16 October 2010 13:47, Max Reznichenko wrote: >> >> belongs_to :model_a >> >> #Model A definition >> has_many :model_b >> -->has_many :model_c, :through => :model_b > > I have not tried it but can you then say > has_many :model_d, :through -> :model_c > > If y

[Rails] Re: Re: ActiveRecord::Relation issue

2010-10-18 Thread Max Reznichenko
Luke Cowell wrote in post #954803: > At the end of the day, the most important thing is that it works. > However, I think we should try to get the database do the work. I'll > apologize in advance that this example is rails2. > > # Project -> TaskList -> Task > Project.all(:group => "projects.id",