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

Already on GitHub? Sign in to your account

uninitialized constant Paperclip::Upfile::MIME version 2.3.14 #508

Closed
ariera opened this Issue Jul 7, 2011 · 3 comments

Comments

Projects
None yet
4 participants

ariera commented Jul 7, 2011

Still having the same problem from the previous version

f=File.new(File.join(Rails.root, "public","images", "missing_cropbox.png"))
u=User.first
u.avatar=f

produces

NameError: uninitialized constant Paperclip::Upfile::MIME
from /Users/fsainz/.rvm/gems/ruby-1.9.2-p180@orly/bundler/gems/paperclip-7db7ce8eea29/lib/paperclip/upfile.rb:9:in `content_type'
from /Users/fsainz/.rvm/gems/ruby-1.9.2-p180@orly/bundler/gems/paperclip-7db7ce8eea29/lib/paperclip/attachment.rb:107:in `assign'
from /Users/fsainz/.rvm/gems/ruby-1.9.2-p180@orly/bundler/gems/paperclip-7db7ce8eea29/lib/paperclip.rb:279:in `block in has_attached_file'
from (irb):3
from /Users/fsainz/.rvm/gems/ruby-1.9.2-p180@orly/gems/railties-3.1.0.rc4/lib/rails/commands/console.rb:45:in `start'
from /Users/fsainz/.rvm/gems/ruby-1.9.2-p180@orly/gems/railties-3.1.0.rc4/lib/rails/commands/console.rb:8:in `start'
from /Users/fsainz/.rvm/gems/ruby-1.9.2-p180@orly/gems/railties-3.1.0.rc4/lib/rails/commands.rb:40:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

I checked I was using the last version /.rvm/gems/ruby-1.9.2-p180@orly/bundler/gems/paperclip-7db7ce8eea29

Contributor

sikachu commented Jul 7, 2011

Snap! Let me have a look.

@sikachu sikachu closed this in ebb1306 Jul 10, 2011

fsainz commented Jul 11, 2011

thx!

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