Rely on model to route
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<span class="for-screen-reader">Remove background image</span>
|
||||
<% end %>
|
||||
<% elsif !card.closed? %>
|
||||
<%= form_with model: card, url: card_path(card), data: { controller: "form" } do |form| %>
|
||||
<%= form_with model: card, data: { controller: "form" } do |form| %>
|
||||
<label class="btn input--file" data-controller="tooltip">
|
||||
<%= icon_tag "picture-add" %>
|
||||
<span class="for-screen-reader">Add background image</span>
|
||||
|
||||
Reference in New Issue
Block a user