Top "Paperclip" questions

Paperclip is a library for the Ruby on Rails framework which makes dealing with file attachments easier.

Smarter paperclip validations

I'm using paperclip in a rails app and have the following three validations in my model validates_attachment_presence :photo …

ruby-on-rails model paperclip validation
Rails - Paperclip validating attachment size when it shouldn't be?

I've got a rails model using Paperclip that looks like this: has_attached_file :image, :styles => { :normal => ['857…

ruby-on-rails ruby activerecord ruby-on-rails-plugins paperclip
Ruby on Rails - Paperclip Error

For reference I have been following this tutorial: https://devcenter.heroku.com/articles/paperclip-s3 Except I am in localhost testing …

ruby-on-rails paperclip
Paperclip Error: model missing required attr_accessor for 'avatar_file_name'

I then want to use Paperclip to have photos for each Listing. I added the appropriate code to the listings …

ruby-on-rails ruby image ruby-on-rails-4 paperclip
AWS::S3::S3Object.url_for - How to do this with the new AWS SDK Gem?

I've been using this forever with paperclip and aws-s3: def authenticated_url(style = nil, expires_in = 90.minutes) AWS::S3::S3…

ruby-on-rails ruby-on-rails-3 amazon-s3 paperclip
ImageMagick installation in Docker Alpine

So I have this Dockerfile that attempts to install ImageMagick the following way: FROM ruby:2.4-alpine ... RUN apk --update add …

docker imagemagick paperclip alpine paperclip-validation
Default_url in Paperclip Broke with Asset Pipeline Upgrade

I'm using Paperclip and have a default_url option like this for one of my attachments: :default_url => '/…

ruby-on-rails-3 paperclip asset-pipeline
Resize existing images to new style in paperclip & RMagick

I've been using paperclip to upload and auto-resize photos in my Rails app, and I love it. Only problem is …

ruby-on-rails ruby imagemagick paperclip rmagick
Rails missing image

I am currently using paperclip to upload images to my rails app. This is probably a very simple fix but …

ruby-on-rails paperclip
Getting width and height of image in model in the Ruby Paperclip GEM

Trying to get the width and height of the uploaded image while still in the model on the initial save. …

ruby-on-rails paperclip