To make rerocess! work add these lines to your Gemfile
. Try to add paperclip
specific version compatible cocaine
gem version. For my case those were below:
gem "paperclip", "~> 3.0.4" gem 'cocaine', '0.3.1'
Also run this command in your console
gem install rmagick
Then run your migration.
If the reprocess! method of paperclip still not generating thumbnail/styles images. Just creating original images clone. So to resolve this we have to run command [1] below:
rake paperclip:refresh:missing_styles
Above command will generate thumbnails as well as a file at public/system/paperclip_attachments.yml if you want to regenerate thumbnails remove this file and run the above command again.
RAILS_ROOT has been changed to Rails.root