From 9dec1bcbbde5041f01a622b0cd19cd3bcd551abd Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 17 Sep 2018 13:49:38 -0500 Subject: [PATCH] fix images not loading --- app/views/content/edit.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/content/edit.html.erb b/app/views/content/edit.html.erb index f563acac..c62900a0 100644 --- a/app/views/content/edit.html.erb +++ b/app/views/content/edit.html.erb @@ -16,14 +16,14 @@ <% end %> -<%= content_for :javascripts do %> + <% if @content.persisted? %> <%= render partial: 'content/share', locals: { shared_content: @content} %>