jquery - Wait for image to be processed on S3 and then fade it in using Rails -


i using carrierwave rails process images. these images using carrierwave_backgrounder process images on amazon s3.

the issue once save entry, redirects me index view, shows broken images, since haven't been processed yet.

how go implementing code checks index view see if image has been processed, fade in?

carrierwave backgrounder set db column null after processing, not sure how integrate jquery.

any guidance great. thanks.

optionally can add column database set nil when background processing complete.

add_column :users, :avatar_processing, :boolean

/via carrierwave_backgrounder doc

so, can place flag on rails view(for example, in data-attribute in img tag), , check jquery.


Comments