我想跟踪活动记录和关联的历史记录。我有many to many
关联:
class BookList
has_many :book_list_items
has_many :books, through: :book_list_items
end
class BookListItem
belongs_to :book
belongs_to :book_list
attr_accessable :position
end
class Book
has_many :book_list_items
has_many :book_lists, through: :book_list_items
end
如何跟踪BookList
的历史记录:
如何实现此结构
答案 0 :(得分:1)
http://railscasts.com/episodes/255-undo-with-paper-trail
根据您提供的信息
,这是一款非常适合您的导轨演员