undefined method 'has_attached_file' #192

razic opened this Issue May 1, 2010 · 5 comments


None yet

3 participants

razic commented May 1, 2010

paperclips gives undefined method error for has_attached_file


source 'http://rubygems.org'
gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
gem 'paperclip', :git => 'git://github.com/thoughtbot/paperclip.git', :branch => 'rails3'

Had the same issue
gem 'paperclip', :git => 'git://github.com/JasonKing/paperclip.git', :branch => 'rails3'
workarounded it

razic commented May 1, 2010

Are you sure? That's not working for me either.


Yeah this is defnitely broken at the moment - at least in rails3beta3.
This issue is a dup of - http://github.com/thoughtbot/paperclip/issues/issue/190


As a work around, you can add the line
include Paperclip
In your model just above the attempt to call has_attached_file.

razic commented May 1, 2010

I will try this later - am not at a computer right now. Thanks, I'll close this issue and follow the one you mentioned.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment