From 335305a1e17e5de1b3feff2a12eb559e7fa79d50 Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 26 Aug 2017 21:49:54 +0200 Subject: [PATCH] The link to visualize was too relative, and sometimes it could fail in some specific cases (after a failed creation) --- app/views/events/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/events/_form.html.haml b/app/views/events/_form.html.haml index 0a65ba46..e39c4982 100644 --- a/app/views/events/_form.html.haml +++ b/app/views/events/_form.html.haml @@ -85,7 +85,7 @@ t(rule, scope: 'activerecord.attributes.event.rule_values') .actions - = f.button formaction: :preview do + = f.button formaction: url_for(action: @event.new_record? ? :preview_create : :preview) do %em.fa.fa-eye = t '.visualise'