Save 36% for Black Friday! Learn more

Harshabab Singh

Joined

50 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Issues with paperclip gem on Windows 8

Hi, i am new to rails(using Windows 8, rails v = 5.1.4 & ruby v= 2.2.6) and i am having issues with image uploading using paperclip gem, i saw the documentation on github & manually installed file.exe, and also installed imageMagick and added the following lines of code in my config\environments\development.rb file

Paperclip.options[:command_path] = 'C:\Program Files (x86)\GnuWin32\bin'
Paperclip.options[:command_path] = 'C:\Program Files\ImageMagick-7.0.7-8-Q16'

but still i get these 2 errors:

**has contents that are not what they are reported to be**.

or 

** Paperclip::Errors::NotIdentifiedByImageMagickError.**

 Please can anyone guide step by step me how to use paperclip gem on windows platform.
logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.