has_many :attendees # 複數 #... end class Attendee < ActiveRecord::Base belongs_to :event # 單數 end. 同樣地,belongs_to和has_many這兩個方法,會分別動態新增 ...
確定! 回上一頁