6

Change form_with to generate non-remote forms by default

 3 years ago
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.

Contributor

p8 commented 22 days ago

edited

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK