Closed zenkovnick closed 10 years ago
Should be fixed now. Try it with master branch: https://github.com/comfy/comfortable-mexican-sofa/commit/30bb618d5bc4a0f1a2b19962037c85896f08c4ad
Now I'm getting NoMethodError (undefined method `gsub' for #Pathname:0x00000008767700)
NoMethodError (undefined method `gsub' for #<Pathname:0x00000008767700>):
<a href="txmt://open?url=file:///home/zenkovnick/.rvm/gems/ruby-2.0.0-p353@hub/gems/paperclip-4.1.1/lib/paperclip/interpolations.rb&line=33&column=1">/gems/paperclip-4.1.1/lib/paperclip/interpolations.rb:33:in `block in interpolate'</a>
<a href="txmt://open?url=file:///home/zenkovnick/.rvm/gems/ruby-2.0.0-p353@hub/gems/paperclip-4.1.1/lib/paperclip/interpolations.rb&line=32&column=1">/gems/paperclip-4.1.1/lib/paperclip/interpolations.rb:32:in `each'</a>
<a href="txmt://open?url=file:///home/zenkovnick/.rvm/gems/ruby-2.0.0-p353@hub/gems/paperclip-4.1.1/lib/paperclip/interpolations.rb&line=32&column=1">/gems/paperclip-4.1.1/lib/paperclip/interpolations.rb:32:in `inject'</a>
<a href="txmt://open?url=file:///home/zenkovnick/.rvm/gems/ruby-2.0.0-p353@hub/gems/paperclip-4.1.1/lib/paperclip/interpolations.rb&line=32&column=1">/gems/paperclip-4.1.1/lib/paperclip/interpolations.rb:32:in `interpolate'</a>
<a href="txmt://open?url=file:///home/zenkovnick/.rvm/gems/ruby-2.0.0-p353@hub/gems/paperclip-4.1.1/lib/paperclip/attachment.rb&line=479&column=1">/gems/paperclip-4.1.1/lib/paperclip/attachment.rb:479:in `interpolate'</a>
<a href="txmt://open?url=file:///home/zenkovnick/.rvm/gems/ruby-2.0.0-p353@hub/gems/paperclip-4.1.1/lib/paperclip/attachment.rb&line=167&column=1">/gems/paperclip-4.1.1/lib/paperclip/attachment.rb:167:in `path'</a>
I can't replicate this error. What are you trying to upload and do you have any custom paperclip settings?
yes, I had custom Paperclip settings, works fine now, thanks
I'm having the same problem but with a Rails 3.2.11 project. I can't update the gem to the 1.12.1 version because it relies on Rails 4. How do I fix this?
just explicitly load paperclip in your gemfile: gem 'paperclip', '~> 3.4.0'
I am using 'comfortable_mexican_sofa', '1.11.0' gem in rails 4 existing application. I got Paperclip::Errors::MissingRequiredValidatorError.How can I fix the this bug without create any disturbance on application.
@Fyang0219 Bump CMS to 1.11.2 for the fix.
i am done override files controller and model in existing application. use cms version 1.11.2 code thanks
I have some problems using Ruby 2.0.0-p353, Rails 4.0.0 and Comfortable Mexican Sofa while uploading files to the CMS page. I got Paperclip::Errors::MissingRequiredValidatorError
Part of backtrace
As far as I have understood - there is a problem with Paperclip ContentType validation. If I use paperclip as standalone with my models - I can provide "validates_attachment_content_type :image, :content_type => ["image/jpg", "image/jpeg", "image/png", "image/gif"]" or "do_not_validate_attachment_file_type :image" What should I config to prevent validation in CMS?