search for: areamanager

Displaying 1 result from an estimated 1 matches for "areamanager".

Did you mean: area_manager
2009 Oct 20
2
Find sub sub records
...lowing problem, maybe someone can help me figure out what to do. To simplify my situation, I''m going to make an example of what I need, this is not the real app structure. Let''s suppose we have three models, Library, Author, Book. Manager has_and_belongs_to_many :area_managers AreaManager has_and_belongs_to_many :managers has_many :employees Employee belongs_to :area_manager Given a manager, I''d like to find all the employees under its area managers in a single query. -- Posted via http://www.ruby-forum.com/.