I'm trying to replace an image on a page after uploading a new one with carrierwave and jquery-file-upload-rails. The problem I'm having is that the new image doesn't actually show on the page even though the element's html is properly replacing the old image's html tags.
The image is properly being saved, and the paths match.
Here's my update.js
<% if @logo %>
$('.logo-container').replaceWith("<div class='logo-container'><img href='<%= @logo.image_url %>' class='col-1 col'/></div>");
<% end %>
I'm thinking this may be a cache issue but I'm not yet certain.
Thanks for your help in advance!
The issue is that I was using href and not src. Meh!!