I have installed Remotipart to upload photo in AJAX in a simple_form.
When I submit the form, the html.erb view is rendered but the photo is not displayed through the cl_image_tag user.photo. In order to view the photo, I have to reload the html.erb view.
Indeed, when I put a binding.pry in the html.erb view and that I upload a new photo, I do not get a get a Cloudinary object as I should get in the @file attribute.
Hi,
I have installed Remotipart to upload photo in AJAX in a simple_form.
When I submit the form, the
html.erb
view is rendered but the photo is not displayed through thecl_image_tag user.photo
. In order to view the photo, I have to reload thehtml.erb
view.Indeed, when I put a
binding.pry
in thehtml.erb
view and that I upload a new photo, I do not get a get aCloudinary
object as I should get in the@file
attribute.See below the
user.photo
object that I get.Here is my simple_form code:
Is a problem of gem or me doing something wrong?
Thanks a lot for your help. Guillaume