Skip to content

Commit

Permalink
Fix deleting repos on show and index views
Browse files Browse the repository at this point in the history
  • Loading branch information
moozzi authored and postmodern committed Jan 22, 2024
1 parent de5265f commit 7ce63b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion views/repos/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
</div>

<div class="control">
<form action="/repos" method="DELETE">
<form action="/repos" method="POST">
<input type="hidden" name="_method" value="DELETE">
<button type="submit" class="button is-danger">Purge</button>
</form>
</div>
Expand Down
3 changes: 2 additions & 1 deletion views/repos/show.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
</div>

<div class="control">
<form action="/repos/<%=hattr @repo.name %>" method="DELETE">
<form action="/repos/<%=hattr @repo.name %>" method="POST">
<input type="hidden" name="_method" value="DELETE">
<button type="submit" class="button is-danger">Remove</button>
</form>
</div>
Expand Down

0 comments on commit 7ce63b6

Please sign in to comment.