You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
Im using Rails 4.2.5 with ruby 2.1.4, delayed_job 4.1.1 and delayed_paperclip 2.9.1
Well this is my configuration, I have a model called Picture:
classPicture < ActiveRecord::Basebelongs_to:ofert,dependent: :destroyhas_attached_file:image,:styles=>{:medium=>"300x300#",:thumb=>"100x100>",:large=>"600x400#",:morethumb=>"50x50#",:ultrathumb=>"25x25#"},:default_url=>"https://s3-sa-east-1.amazonaws.com/:s3_bucket/ofert_defaults/:style/brown_hat.jpg"validates_attachment_content_type:image,:content_type=>/\Aimage\/.*\Z/validates_attachment_presence:image,:if=>:isProduction?validates_attachment_size:image,:less_than=>5.megabytesprocess_in_background:image,processing_image_url: 'https://s3-sa-east-1.amazonaws.com/:s3_bucket/ofert_defaults/:style/brown_hat.jpg'#Checks if the current env is production, so we skip this validation on developmentdefisProduction?Rails.env == 'production'endend
when I create them the bakcground processing is occurring normally, however when I try to display the picture the image is broken, I mean it has the link of the image in amazon s3 but it is broken, I wait some seconds and reload the page and the images are shown as expected.
as you can see above I set the processing_image_url but it seems to not be working, I even tried to do the following:
<% ifpicture.image.processing?%> <strong>Theimageisbeingprocessed</strong>
<% else %>
<%= link_topicture.image.url(:medium),data: {large: picture.image.url}do%> <%= image_tag picture.image.url(:thumb) %>
<% end %><% end %>
However it is still not working... any ideas?
The text was updated successfully, but these errors were encountered:
Im using Rails 4.2.5 with ruby 2.1.4, delayed_job 4.1.1 and delayed_paperclip 2.9.1
Well this is my configuration, I have a model called Picture:
when I create them the bakcground processing is occurring normally, however when I try to display the picture the image is broken, I mean it has the link of the image in amazon s3 but it is broken, I wait some seconds and reload the page and the images are shown as expected.
as you can see above I set the
processing_image_url
but it seems to not be working, I even tried to do the following:However it is still not working... any ideas?
The text was updated successfully, but these errors were encountered: