Ricardonacif / active_admin_jcrop

DEPRECATED - Jcrop plugin for ActiveAdmin, enables cropping on image fields when editing
MIT License
55 stars 35 forks source link

uninitialized constant Paperclip::Thumbnail #2

Closed scarver2 closed 10 years ago

scarver2 commented 10 years ago

I am getting the following error: active_admin_jcrop/asset_engine/paperclip.rb:35:in <module:Paperclip>': uninitialized constant Paperclip::Thumbnail (NameError)

I have tested this with Rails 4.1 and both Paperclip 3 and 4.

Ricardonacif commented 10 years ago

I will take a look at it later Scarver. Are you using the version 0.0.5 of AAJcrop?

scarver2 commented 10 years ago

Thanks for the fast response. Yes. I tried 0.0.5 and using the github repo directly.

Ricardonacif commented 10 years ago

Try requiring Paperclip before AAJcrop on Gemfile. I'll try to check this later tonight.

scarver2 commented 10 years ago

Bingo! The order of the gems in the Gemfile was the issue. Thank you!

gem 'paperclip'
gem 'activeadmin', github: 'gregbell/active_admin'
gem 'active_admin_jcrop'
Ricardonacif commented 10 years ago

Nice :+1: