ruby on rails - track history of active record changes and its association -


i want track history active record , association. have many many association:

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 

how track history of booklist this:

  • add book book list
  • remove book book list
  • update position of book in book list

how implement structure

http://railscasts.com/episodes/255-undo-with-paper-trail

this great rails cast work great based on information provided


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -