0
對於第12章練習1,我很難弄清楚爲什麼我的測試不會失敗出:依賴=>:從用戶模型Rails教程Ch 12練習1 - 取出後無法測試失敗:dependent =>:destroy
我測試
我的模型破壞,而不:依賴=>:破壞
has_many :relationships,
:foreign_key => "follower_id"
has_many :following, :through => :relationships, :source => :followed
has_many :reverse_relationships,
:foreign_key => "followed_id"
:class_name => "Relationship"
has_many :followers, :through => :reverse_relationships, :source => :follower
仍導致傳遞
的所有測試