Displaying 1 result from an estimated 1 matches for "certifications_employees".
2006 Jan 21
0
Display options from HABTM
...ertifications table that I would like to have a little
more controll over, it is part of a HABTM relationship.
-----------------------------------
db''s (simplified)
>certifications
id
course
>employees
id
department_id
type_id
name
>departments
id
name
>types
id
kind
>certifications_employees
certification_id
employee_id
-----------------------------------------
Models
class Employee < ActiveRecord::Base
belongs_to :type
belongs_to :department
has_and_belongs_to_many :certifications
end
class Department < ActiveRecord::Base
has_many :employees
end
class Type &...