The link to visualize was too relative, and sometimes it could fail in some specific cases (after a failed creation)

This commit is contained in:
echarp 2017-08-26 21:49:54 +02:00
parent 8343e61e07
commit 335305a1e1

View File

@ -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'