Displaying 1 result from an estimated 1 matches for "disassociate_employee".
2008 Apr 21
1
Urgent ActiveRecord has_many Problem - Please Help
...ny :projects, :through => :membership
2) projects
has_many :memberships
has_many :employees, :through => :membership
3) membership
belongs_to :employees
belongs_to :projects
Membership is used to join employees to projects.
In my projects_controller I have a method called
def disassociate_employee(employee_id)
end
In this function I want to somehow delete the database row in
membership that joins employees t o projects.
I have no idea how to do this and has so far spend two full days
trying to figure this out, but starting to go a bit crazy trying to
figure this one out. :-)
Thanks for yo...