I’m new in rails and I’ve some doubts about what kind of relationship do
have to use. Here the case.
I have two models Offer and User, a user could apply to many offers and
offers can have many user also the users create the offers.
I think I have to use a has_many :through ralationship. for example I
create another model “Applicant”, applicant belongs_to user and
offer. But how is the relationship from the user and offer model? for
has_many :offer, :through => :applicant
has_many :user, :through => :applicant
My doubt is because I already have this two relationship
has_many :offers, :dependent => :destroy
After solve this doubt, I guest I have to save the record in the
model from the applicanst_controller, right?
Thanks in advance