Reputation: 456
I am using the latest version of paper_trail gem (2.7.1) After the gem installed and table created I have added "has_paper_trail" in my model and end up with getting "undefined local variable or method has_paper_trail". I tried even with lower versions but still getting the same error.
Upvotes: 3
Views: 1820
Reputation: 456
This is a silly mistake as we need to restart the server after gem installation. Newbies like me often makes such mistakes. Full credit to Thomas for the kind information.
Upvotes: 5