form_with not displaying remote true since rails 5.2

495 views Asked by At

Since upgrading Rails from 5.1 to 5.2, form_with is not defaulting to remote: true, although it was in rails 5.1

How to default to remote true?

1

There are 1 answers

1
Nicolas Maloeuvre On BEST ANSWER
#config/initializers/form_with_remote.rb
Rails.application.config.action_view.form_with_generates_remote_forms = true

I don't understand why, because the default should be true... but it works