I added the method: patch
to the form_with
helper (like it said to in this SO post)
<%= form_with(model: [:admin, contest], method: :patch) do |form| %>
...
and the <input type="hidden" name="_method" value="patch">
shows up (like it's supposed to) but then when I click "Submit", the request is still a POST request and I get the error
No route matches [POST] "/admin/contests/7"