Displaying 1 result from an estimated 1 matches for "id_of_skil".
Did you mean:
id_of_skill
2006 Jul 02
5
Question about setting field values for a belongs_to model
I have two tables, applicants, and skills where each applicant
"has_many" skills, and each skill "belongs_to" an applicant.
When I have a reference to an applicant and a (skill) id for one of
their skills, I thought to update their skills by using
@applicant.skills.find(id_of_skill).description = ''new description''
# even adding @applicant.skills.find(id_of_skill).save here doesn''t help
...other processing
@applicant.save
This sounds to me like it should lead to the description of the skill
being updated in the database, and indeed an update stat...