More than 1 year has passed since last update.
posted at 2019-11-25
= form_with(model:post.new, local: true) do |f|
local: trueがない場合、Rails5ではAjaxによる送信という意味になる。普通にHTMLとしてフォームを送信する場合にlocal: trueが必要になる
local: true