ruby on rails中Model的关联详解 小王,有一个妈妈。2.:class => 'Mother', 表示, 一的那一端, 对应的model class是Mother. 根据rails的惯例, Mother model对应的是 数据库中的 mothers 表。 benjaminlee 2017-07-28 07:36:57