There are many companies. Each company has many departments. Each
department has many employees. The following find_by_sql method seems
awful. What is the best way to get all the employees of a company?
class Company < ActiveRecord::Base
FROM companies, departments, employees
AND departments.id = employees.department_id”
class Department < ActiveRecord::Base
class Employee < ActiveRecord::Base
I am using Rails 1.0 if that matters. Does it matter? Does the new
has_many :through work here?