Search code examples
ruby-on-railsactionviewactionviewhelper

form_with not displaying remote true since rails 5.2


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?


Solution

  • #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