I have a User Model which has many fields including weight of the user. Admin user can change the weight of a particular user at any time. Is it possible to maintain weight history of a particular user.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s nothing built-in to do model versioning but there are a bunch of gems that could help you. I suggest looking at paper_trail and vestal_versions.
Ryan Bates has some good screencasts covering some of the functionality:
I’d suggest focusing on paper_trail as it’s still being maintained.