I am developing a Ruby on Rails app and I have a model called Activity. I want to be able to make a new instance of Activity and have it be an exact copy of an existing instance of Activity, except that it has a different ID. How can I do this?
Share
dupwill make a “shallow copy”, then save the new activity.