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:
parent
8343e61e07
commit
335305a1e1
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user