Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method 'has_attached_file' #180

Open
jakoss opened this issue Mar 30, 2015 · 6 comments
Open

undefined method 'has_attached_file' #180

jakoss opened this issue Mar 30, 2015 · 6 comments
Labels

Comments

@jakoss
Copy link

jakoss commented Mar 30, 2015

> Booting WEBrick
=> Rails 4.1.8 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/Volumes/D/KonsultacjeSpoleczneJastrzebieZdroj/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.8/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined method `has_attached_file' for #<Class:0x007fbc1689b230> (NoMethodError)
from /Volumes/D/KonsultacjeSpoleczneJastrzebieZdroj/vendor/bundle/ruby/2.2.0/bundler/gems/rich-2ee815f0d8f5/app/models/rich/rich_file.rb:13:in `<class:RichFile>'

After clean install from git gem. Any idea why is that happening?

@jakoss
Copy link
Author

jakoss commented Mar 30, 2015

Ok, i see now that's problem with carrierwave. But why is model using only paperclip function?

@iduuck
Copy link
Contributor

iduuck commented Mar 30, 2015

I don't have that time today and tomorrow, would be nice if someone could dig into this.

@iduuck iduuck added the Fix-me label Mar 30, 2015
@zuf
Copy link

zuf commented Apr 9, 2015

Looks like duplicate paperclip related code in app/models/rich/rich_file.rb and lib/rich/backends/paperclip.rb

@donbobka
Copy link
Contributor

👍
I moved all paperclip code to paperclip.rb(#183) and it works fine with paperclip and carrierwave

@gwincr11
Copy link

This seems to have a pull request, can it be merged?

@etcook
Copy link

etcook commented Jun 30, 2016

I'm having this issue as well - and I definitely have the paperclip gem installed. I'm using Rails 5 and paperclip 5, which is likely the issue.

Any suggestions?

=> Rails 5.0.0.rc2 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
Exiting
/Users/ecook/.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.rc2/lib/active_record/dynamic_matchers.rb:21:in `method_missing': undefined method `has_attached_file' for #<Class:0x007fef9578aa00> (NoMethodError)
    from /Users/ecook/.rvm/gems/ruby-2.3.1/bundler/gems/rich-2c8f85438e73/lib/rich/backends/paperclip.rb:9:in `block in <module:Paperclip>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

6 participants