learning activerecord associations in ruby