paperclip Questions
6
I'm using ruby 1.9.2 along with Rails 3.1.4 and Paperclip 2.4.5.
My issue is trying to save a paperclip attachment from a URI loses the file extension and saves the file without one resulting in i...
4
I'm writing tests with rspec and am a bit struggling with Paperclip 4. At the moment I'm using webmock to stub requests but image processing is slowing tests down.
Everything I read suggest to use...
Excrescency asked 18/2, 2014 at 10:12
4
I am using paperclip to handle my file uploads, and in one situation I don't want the file to be mandatory. I do however want to make sure it is a specific file type when it is present.
I have thi...
Incompatible asked 10/5, 2010 at 22:55
7
Solved
Is it possible to get the absolute URI for a Paperclip attachment? Right now, the problem is that the production environment is deployed in a sub-URI (on Passenger: RackBaseURI), but <paperclip ...
Magically asked 23/9, 2012 at 7:27
5
Solved
I was curious if anyone could get paperclipped working on Heroku without using S3. I'm assuming Heroku is a read-only system, but there must be some way to save images there.
Discountenance asked 23/2, 2011 at 20:19
5
How do you get http://github.com/galetahub/rails-ckeditor working so you can upload image files? I don't think I'll use the s3 storage...
any help would be appreciated.
Uneventful asked 5/9, 2010 at 21:35
5
Solved
I just installed the plugin for Paperclip and I am getting the following error message but I am not sure why:
NoMethodError (undefined method `has_attached_file' for #<Class:0x10338acd0>):
...
Steffi asked 18/4, 2010 at 3:53
3
Solved
Paperclip by default try to process every image file to generate thumbnail. But it also try to do it with pdf files, which can be really time consuming task. I tried looking on google and found one...
Pomace asked 17/2, 2010 at 17:50
5
I'm using paperclip to add image attachments to several models and Activeadmin to provide a simple admin interface.
I have this code in my activeadmin model file which allows for image uploads:
...
Sin asked 11/2, 2012 at 15:34
3
Solved
i am trying to override devise registrations controller so that user would be able to upload his avatar along with changing other data, and crop the userpic after upload.
i added all necesarry use...
Kobold asked 21/4, 2011 at 0:27
6
Any Paperclip wizards out there know if you can when using Paperclip to save an image, also save the image dimensions (width and height) in 2 extra fields? How do you get such data during the Paper...
Sloop asked 31/10, 2010 at 21:43
3
Solved
I understand there are other questions that are the same, but they have no solved my problem.
I keep on receiving the error: Aws::Errors::MissingRegionError in BooksController#create,
missing reg...
Seedcase asked 13/12, 2016 at 10:18
8
Solved
How can I prevent the image tag that calls the associated image from displaying if no image is associated with the record?
<%= image_tag @agent.avatar.url %>
...gives me the text "Missing"...
Adermin asked 17/11, 2008 at 21:13
4
Solved
using rails with Paperclip, I can use the following to get the filename during a before_create:
extension = File.extname(photo_file_name).downcase
How do I get JUST the file name.. Right now I ha...
Photophore asked 29/11, 2010 at 18:21
9
Solved
How do I rename a file after is has been uploaded and saved?
My problem is that I need to parse information about the files automatically in order to come up with the file name the file should be ...
Grainger asked 25/4, 2010 at 12:2
4
Solved
I am running Ruby on Rails 3 and I would like to reduce the quality of an uploading image using the Paperclip plugin/gem. How can I do that?
At this time in my model file I have:
has_attached_...
Flyte asked 14/2, 2011 at 3:9
3
The website's function is to post a Blog Post. It's running locally on Windows 7. I've tried on Paperclip gem (both versions 4.2.4 and 4.3) and the server goes into an infinite loop in cmd (doesn't...
Liege asked 23/7, 2015 at 20:22
4
I am trying to change the basename (filename) of photos:
In my model I have:
attr_accessor :image_url, :basename
has_attached_file :image,
:styles => { :original => ["300x250>", :png...
Weir asked 7/3, 2012 at 18:7
3
Solved
I have a problem to find a way to save an image created with RMagick in a paperclip attachment.
imageList = Magick::ImageList.new
imageList.new("images/apple.gif", "images/overlay.png")
...
pictur...
Jawbreaker asked 27/10, 2010 at 16:2
6
Solved
I'm using paperclip for uploading images in S3.
But I've noted that this upload is very slow. I think because before complete the submit the file has to pass by my server, be processed and be sent ...
Aesculapian asked 29/1, 2010 at 13:2
3
Solved
I have a Rails 3.1 app that makes use of the paperclip gem (v 3.4.0). In a nutshell. I have a story model and a post model. A story can have many posts.
#story.rb
class Story < ActiveRecord::...
Dicky asked 7/3, 2013 at 0:55
8
I have model Person that has many Images, where images has a Paperclip attachment field called data, an abbreviated version displayed below:
class Person
has_many :images
...
end
class Image
ha...
Harhay asked 20/7, 2010 at 22:13
2
Solved
I recently implemented Paperclip with Rails and want to try out some of the filter options from ImageMagick such as blur. I've not been able to find any examples of how to do this. Does it get pass...
Mecke asked 14/12, 2010 at 4:36
5
Solved
Right now I am using Amazon S3 and Paperclip which is allowing my users to upload an image that is associated with the event they are creating. My ultimate goal is since others can view this event,...
Prehension asked 17/10, 2012 at 17:25
2
Solved
I use paperclip in my app, but my controller tests are failing because of:
BlogsControllerTest#test_should_update_blog:
Paperclip::AdapterRegistry::NoHandlerError: No handler found for "/images/o...
Jacquez asked 11/8, 2014 at 17:41
© 2022 - 2024 — McMap. All rights reserved.