I just ran into this and none of the above tips helped. What I found:
The definition of the form should begin first with the action = and the second with the = method
correct form:
<form action="/putsomething" method="POST"> <input type="hidden" name="_method" value="PUT" /> ... </form>
irregular shape:
<form method="POST" action="/putsomething"> <input type="hidden" name="_method" value="PUT" /> ... </form>
The first worked for me, the second - no. Perhaps this helps.
source share