|
|
1
1
您是否尝试将类名与关联一起指定?。在课程类中,当你给has_and_belongs_to_many:学生时,指定联接类名或jpin表名,如下所示:, 所以,在课程课上, has_and_belongs_to_many:students,:join_table=>“课程_学生” 或 has_and_belongs_to_many:学生,:类名=>“课程学生” |
|
2
1
必须指定
|