Tariksin
9 February, 2010
View Website
Rails 3✓
Thread Safety?
JRuby?
Ruby 1.9?
Is it working for you?
I'm running Paperclip 2.3.3 and Ruby 1.9.2rc1 without issues or patches.
Leave a Comment
Works on 1.9.2 HEAD with a simple patch: http://github.com/dwalters/paperclip/commit/2a85add5f102db8773518f8ac30f7e2337bf7d13
Placing the following line in your Gemfile should do the job:
gem 'paperclip', :git => 'git://github.com/dwalters/paperclip.git', :branch => 'rails3'
This is on top of the JasonKing rails3 fixes.
TypeError (can't convert nil into Integer):
When attempting to upload an image, raises the following error:
TypeError in *Controller#update can't convert nil into Integer
Works fine with 1.8.7
I got that same error.
I am on ubuntu 9.10 & ruby 1.9.2 & rails 3 beta 2 and I face with the same exatct problem .. uploading an image results with the same error.
Same here (Mac OS X 10.6.4, rvm 1.0.0, Rails 2.3.8, ruby 1.9.2 p0, paperclip 2.3.3).
Canging the line in processor.rb to
sprintf("%s,%s,%s%s", File.basename(basename, extension), $$, n, extension)
(replaced the two ocurrences of '%d' to '%s') worked for me (for the time being).
Conversions are not working without dwalters's patch.
I'm running Paperclip 2.3.3 and Ruby 1.9.2rc1 without issues or patches.