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...
Attached (see below) is some code to allow using unobtrusive JavaScript on pages fetched with an AJAX call.
No results found in other decks.