I’m trying to use :through to ‘link’ to models, but the << assignment
does not appear to work as I have it. Any help would be great
has_many :jobs, :through => :assignments
has_many :users, :through => :assignments
This is what I am trying to do, but it does not work.
@user.jobs << @job
If I manually populate the assignments table with user and job id’s I
can do @jobs = @user.jobs etc.