Just assign the existing attachment to another record: new_photo = Photo.new new_photo.image = old_photo.image Paperclip will duplicate the file when saving...

This is more tricky than it should be because url_for, asset_path, etc. all rely on different mechanisms.

Best results in other decks

makandra Curriculum

makandra offers an 8 month paid trainee program 🇩🇪 for junior developers that are looking to start a professional career in...

makandra Operations

JSON Web Tokens are often times used for authentication delegation from one system to another. They can be decoded for...

Search in all decks