Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
自从将 Rails 从 5.1 升级到 5.2 后,form_with 不再默认为 remote: true,尽管它在 rails 5.1 中
如何默认为remote true?
#config/initializers/form_with_remote.rb Rails.application.config.action_view.form_with_generates_remote_forms = true
我不明白为什么,因为默认应该是真的......但它有效