To setup a bi-directional association - use belongs_to in combination with a has_one or has_many on the other model. belongs_to does not ensure reference ...
確定! 回上一頁