Updating extra attributes in a has_many, :through relationship using Rails
- by Robbie
I've managed to set up a many-to-many relationship between the following models
Characters
Skills
PlayerSkills
PlayerSkills, right now, has an attribute that Skills don't normally have: a level.
The models look something like this (edited for conciseness):
class PlayerSkill < ActiveRecord::Base
belongs_to :character
belongs_to :skill…