Skip to content

choonkeat/paperclip_to_attache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Given that we have a simple CRUD app with Paperclip

We can upgrade to attache while keeping all the S3 files intact and in place.

  • add attache_rails to Gemfile
  • add json columns to tables
  • populate json columns with existing paperclip urls & metadata
  • use has_one_attache and/or has_many_attaches in model
  • use *_url and/or *_urls helper methods to render image_tag instead
  • update strong params

After the upgrade is applied (and db:migrate is done) then we an look to remove paperclip gem, aws gem and S3 config

We can also look to enable attache js to make browser upload faster (directly to attache, instead of uploading the files to your rails app)

About

Sample project implemented with Paperclip upgrades to Attache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published