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
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
The text was updated successfully, but these errors were encountered: