我已閱讀錯誤。它說,sql傳遞的值比表中指定的更多/更少。但我的表有7列,我發送7個參數,但仍然出現錯誤。請幫助 Books_out_on_loan DROP TABLE IF EXISTS `books_out_on_loan`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET characte
我有一個像這樣在我的應用程序HABTM關係: class Book < ActiveRecord::Base
has_and_belongs_to_many :authors
end
class Author < ActiveRecord::Base
has_and_belongs_to_many :books
end
在軌控制檯我可以訪問圖書的記錄,作者是這樣的: