From 30a2db635dbba22bbe7ca0df4f53f565043b06a4 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 4 Oct 2017 22:47:09 +0200 Subject: [PATCH] displays upload link for second image To infinity and beyond --- app/views/admin/poll/questions/answers/images/new.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/poll/questions/answers/images/new.html.erb b/app/views/admin/poll/questions/answers/images/new.html.erb index 17e728a21..14156a79d 100644 --- a/app/views/admin/poll/questions/answers/images/new.html.erb +++ b/app/views/admin/poll/questions/answers/images/new.html.erb @@ -51,7 +51,7 @@ force_non_association_create: true, partial: "images/image_fields", id: "new_image_link", - class: "button hollow #{"hide" if @answer.images.present?}", + class: "button hollow", render_options: { locals: { imageable: @answer } },