![](/style/images/good.png)
![](/style/images/bad.png)
Change form_with to generate non-remote forms by default
source link: https://github.com/rails/rails/pull/40708
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Summary
form_with
would generate a remote form by default.
This confused users because they were forced to handle remote requests.
All new 6.1 applications will generate non-remote forms by default.
When upgrading a 6.0 application you can enable remote forms by default by
setting config.action_view.form_with_generates_remote_forms
to true
.
Fixes: #39711
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK