Skip to content
This repository

undefined method 'has_attached_file' #192

Closed
razic opened this Issue May 01, 2010 · 5 comments

3 participants

Zachary Adam Kaplan Julien Kirch Brian Lopez
Zachary Adam Kaplan
razic commented May 01, 2010

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'
Julien Kirch

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

Zachary Adam Kaplan
razic commented May 01, 2010

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

Brian Lopez

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

Brian Lopez

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

Zachary Adam Kaplan
razic commented May 01, 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
Something went wrong with that request. Please try again.