Skip to content

Instantly share code, notes, and snippets.

@y-temp4
y-temp4 / HTML出力結果
Last active February 6, 2020 00:45
RailsでjQueryを読み込まずにmethod: :deleteのリンクを実現する(Routing Error No route matches [GET] ... の対処法) ref: https://qiita.com/y-temp4/items/2d50feb3ff0d65acdf67
<form class="button_to" method="post" action="/users/sign_out">
<input type="hidden" name="_method" value="delete">
<input type="submit" value="ログアウト">
<input type="hidden" name="authenticity_token" value="(省略)">
</form>