unmantained-activeadmin-plugins / activeadmin-dragonfly

MIT License
13 stars 50 forks source link

dragonfly/rails/images no longer exists! #4

Closed baxang closed 10 years ago

baxang commented 10 years ago

I think Dragonfly has changed its behaviour from v1.0 and it is causing an exception in https://github.com/stefanoverna/activeadmin-dragonfly/blob/master/lib/active_admin/dragonfly/engine.rb#L10.

It works well with Dragonfly 0.9.15.

/Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/dragonfly-1.0.1/lib/dragonfly/rails/images.rb:1:in `<top (required)>':  (LoadError)
*****
dragonfly/rails/images no longer exists! Please use the rails generator instead

    rails generate dragonfly

see the documentation at http://markevans.github.io/dragonfly/rails for more details
*****
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/bundler/gems/activeadmin-dragonfly-d39f4689c92b/lib/active_admin/dragonfly/engine.rb:10:in `block in <class:Engine>'
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
    from /Users/shpark/.rbenv/versions/1.9.3-p448-railsexpress/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /Users/shpark/Projects/projectc/config/environment.rb:5:in `<top (required)>'
...
PelagicDev commented 10 years ago

Yeah, I'm having this same problem. Looks like they've changed up some things with the 1.0+ versions.

asecondwill commented 10 years ago

yep same. any news on a workaround?

waiting-for-dev commented 10 years ago

same same

matjack1 commented 10 years ago

with pull request #5 we should temporary fix the problem. An update to Dragonfly 1.0 is needed.

stefanoverna commented 10 years ago

temporarly fixed by hardcoding version 0.9.15 on commit 5bada6660760b090035851f82c

asecondwill commented 10 years ago

Still not working, that does not enable s3 storage, s3 storage requires gem 'dragonfly-s3_data_store' which wants v 1.0 of dragonfly

matjack1 commented 10 years ago

Thanks @asecondwill, I'll take a look as soon as possible!

nebirhos commented 10 years ago

Dragonfly-s3_data_store is only needed when you use dragonfly >=1.0.0, otherwise it's included in the base gem. Just remove it from your gemfile.