Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

undefined method 'has_attached_file' #192

Closed
razic opened this Issue · 5 comments

3 participants

@razic

paperclips gives undefined method error for has_attached_file

gemfile:

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'
@archiloque

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

@razic

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

@brianmario

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

@brianmario

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

@razic

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
Something went wrong with that request. Please try again.