Re: [Rails] Active Record Querying-Help

2012-06-12 Thread Colin Law
On 11 June 2012 16:03, sigdelsaroj wrote: > I am new to rails and stuck on one Querying issue. Here is the > situation. > > Model: Category > class Category < ActiveRecord::Base >        has_and_belongs_to_many :postings >        has_and_belongs_to_many :volunteers > end > > Model: Posting > class

[Rails] Active Record Querying-Help

2012-06-12 Thread sigdelsaroj
I am new to rails and stuck on one Querying issue. Here is the situation. Model: Category class Category < ActiveRecord::Base has_and_belongs_to_many :postings has_and_belongs_to_many :volunteers end Model: Posting class Posting < ActiveRecord::Base has_and_belongs_to_many