In paperclip when you save an image with lots of style and sizes it also saves the original. But in my app it\'s not necessary to save the original, just the style will do, what I was wondering was
I\'m trying to sharpen images uploaded through paperclip. The sharpen code is working but it causes the styles to not work. The code is like this:
From a controller, is there a way to call a method in a model with a file as a parameter, without getting an uninitialized stream error when you try to use the received file in the model?
I am using paperclip to attach an excel file to a mode. The purpose is to import the data from the excel file to the database.
Formerly: Running a model method on a paperclip attachment after create or update (paperclip callbacks don\'t seem to work)
I have a rails app with the follow code: class Rig < ActiveRecord::Base has_many :rig_pictures, :dependent => :destroy
I have paperclip working uploading and saving different styles for images but when i go to crop the image using jcrop from railscasts tutorial it doesnt crop image.I get this error
I am getting th开发者_如何学Pythone width and height of an image stored on Amazon S3 using Paperclip as follows:
I am using Ruby on Rails 3 and I have a form like this: <%= form_for(@user, ... ) do |f| %> ... <%=开发者_开发知识库 f.file_field :avatar, :id => \"test_id\", :style => \"display: bloc
\"Paperclip\" requires to add these columns in a database for a general attachement (in the following example it is named \'attribute\'):