A User has a photo. When they update their photo, it is successfully updating in the database however it does not update in the browser. If I open a different browser, I can see that it has been updated. But this problem is occurring in all browsers. Is there any way that I can force Rails to show the new image after it is updated?
I am using standard code in the controller that updates the user_params.
From Heroku Console
Started PATCH "/community/8" for
Processing by UsersController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"7zUIz7zxmYm8dssdSEGDHbddsieyVnwix8z/Fx/sxVzXqoLtxNq+3sxfps8RsE6pV/XN5V46qhJdo1VpKLK8pF3wDmZNg==", "user"=>{"profile"=>"Cool dude. Lives under ocean.", "photo"=>#, @original_filename="som-tam-thai.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"user[photo]\"; filename=\"som-tam-thai.jpg\"\r\nContent-Type: image/jpeg\r\n">, "gender_type"=>"male", "country"=>"US"}, "id"=>"8"}
[1m[35mSQL (1.5ms)[0m UPDATE "users" SET "photo" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["photo", "8.jpg"], ["updated_at", "2017-03-04 18:34:20.835477"], ["id", 8]]
If I update the other user attributes that are strings, they will be shown immediately. Only the photo requires that the browser be restarted for the changes to be shown.