paperclip Questions
2
Solved
I have an application which works already (in staging and prod) with S3.
Now we want it to work with cloudfront.
I figured out that from some reason I have paperclip definitions in two places:
/c...
Yacov asked 18/8, 2015 at 16:23
10
Solved
I'm using Paperclip and have a default_url option like this for one of my attachments:
:default_url => '/images/missing_:style.png'
The asset pipeline obviously doesn't like this since the di...
Snot asked 10/3, 2012 at 12:49
3
Solved
I am trying to add two different attachment fields. The migration is failing wether i run it using bundler or without. (bundle exec rake db:migrate or just rake db:migrate).
== AddDiagramToQuestio...
Frontispiece asked 22/1, 2012 at 20:53
1
I got a problem using paperclip gem in rails.
I was following this tutorial https://devcenter.heroku.com/articles/paperclip-s3
I got this param in my avatar ActionDispatch::Http::UploadedFile:0x00...
Tumefacient asked 7/7, 2016 at 9:27
5
Solved
In rails 4.0.2, I am using paperclip gem to upload files. But it is not supporting .doc file. Below the file upload field, it is showing an error message as "has an extension that does not match it...
Schwenk asked 20/3, 2014 at 8:16
2
Solved
I made myself a simple rails blogging-type app where I use Paperclip to upload image files.I have everything working fine and dandy. I even have it hooked up to an S3 bucket, etc. Spiffy right?
B...
Moreover asked 11/3, 2014 at 2:19
3
Solved
This is an issue I'm having with the fact that after I upgraded to AWS-SDK (instead of aws-s3) with the newer version(s) of paperclip I can no longer call AWS::S3::Base.establish_connection! at all...
Enclitic asked 13/4, 2012 at 8:2
5
Solved
do you know if is there a method to know if the image has been uploaded?
I mean, i have a Foo_Class, and this class can have an attached image, but its presence is not necessary. Is there a way to...
Belinda asked 8/4, 2011 at 10:31
1
Solved
Im using paperclip as a nested attribute and trying to upload the photo at the model creation with f.submit
The photos model belongs_to classified model..
c:\Site\brokerv1\brokr>rails --versio...
Unconscionable asked 12/8, 2016 at 19:48
3
Solved
I want to upload images on my local machine for development but store them on my Amazon S3 account for production.
upload.rb
if Rails.env.development?
has_attached_file :photo, :styles => { :...
Hatcher asked 15/11, 2011 at 5:17
1
Solved
While i was trying to submit the form, following error occured: Validation failed: Images imageable must exist and render the same new.html.erb view.
If i comment the file field in new.html.erb. P...
Autochthon asked 26/7, 2016 at 7:59
3
Solved
I'm trying to write a test for a model with a picture, using paperclip. I'm using the test framework default, no shoulda or rspec. In this context, how should I test it? Should I really upload a fi...
Horning asked 12/12, 2009 at 23:51
2
Should be a pretty simple fix to this question, I think, but I can't seem to get it to work. I have a Rails 4 app, a User model with a photograph attribute setup with Paperclip, and I have it linke...
Hutton asked 1/1, 2014 at 23:48
1
Check whether a Paperclip attachment exists:
I'm trying to see if the attachment has selected a file/image then something will happen like this new view to appear. So after i click browse select an...
Practical asked 8/5, 2016 at 21:7
1
all.
I've got everything working fine: images are being uploaded and can be accessed via Web with paperclip and S3, except when I log into rails c and type something like this:
> User.first.av...
Janiecejanifer asked 15/7, 2015 at 15:59
2
Solved
I'm working on a simple project using Paperclip to upload images. Everything has been working just fine until I attempted to integrate S3 with Paperclip. Upon 'uploading' a user's image I get a NoM...
Archduchess asked 10/5, 2016 at 3:56
5
Struggling to workout when i add the following validtion to my Voice model using paperclip, it is being triggered when i try and upload an mp3:
class Voice < ActiveRecord::Base
has_attached_fi...
Miscall asked 17/11, 2009 at 20:27
4
In order to avoid hot-linking, S3 bandwidth leeching, etc I would like to make my bucket private and serve the files through a Rails app. Concept in general sounds very easy, but I am not entirely ...
Douce asked 27/10, 2010 at 22:2
2
Solved
I have an external service that creates files and stores them into S3 (that my Rails app has access too).
I want to be able to use Paperclip in order to store that S3 object, as well as a thumbna...
Valtin asked 28/7, 2014 at 18:2
2
Solved
I am uploading a large image to my model using Paperclip. I'd like to only set the width of the image and let it resize the height automatically.
has_attached_file :picture, :styles => { :large...
Gaucho asked 8/7, 2013 at 16:16
2
Solved
This is my Image model, in which I've implemented a method for validating the attachment's dimensions:
class Image < ActiveRecord::Base
attr_accessible :file
belongs_to :imageable, polymorph...
Wailoo asked 12/9, 2012 at 13:6
1
Solved
I use ImageMagick on the Google Cloud Platform. I use rails and Google's App Engine Flexible Environment. So the problem is I want to upload an Image to process in more sizes. I use paperclip.
The...
Matildamatilde asked 27/3, 2016 at 22:55
4
Solved
I'm trying to incorporate images into my web app and I keep running into this error after removing quite a few features. It came down to my 'create' application controller and I'm not entirely sure...
Schwab asked 6/2, 2015 at 20:38
3
Solved
In my Rails app I'm letting users upload an image when they create a "release", and it should upload directly to S3. I'm getting the following error in both development and production.
EDIT: I sho...
Fichte asked 25/7, 2013 at 16:44
3
Solved
I have a model with a avatar paperclip attach. It has now a plain standard path
has_attached_file :avatar,
:path => "/:id-:style-:filename"
Which I need to move into an obfuscated one
has_a...
Thicken asked 20/4, 2012 at 18:10
© 2022 - 2024 — McMap. All rights reserved.