Skip to content

Commit

Permalink
Repair cancel buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
wbreeze committed Jul 19, 2019
1 parent 4c506f9 commit 9e7ff64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/views/choices/edit.html.erb
Expand Up @@ -7,5 +7,7 @@
<%= render :partial => 'form' %>

<div class="actions">
<%= link_to 'Cancel', wrap_choice_path(@choice.edit_token) %>
<%= button_to 'Cancel',
wrap_choice_path(@choice.edit_token),
:method => :get %>
</div>
2 changes: 1 addition & 1 deletion app/views/choices/new.html.erb
Expand Up @@ -8,5 +8,5 @@
<%= render :partial => 'form' %>

<div class="actions">
<%= submit_tag 'Cancel', :name=>'cancel' %>
<%= button_to('Cancel', root_path, :method => :get) %>
</div>

0 comments on commit 9e7ff64

Please sign in to comment.