default_url_options does not work with simple_form_for GET

Viewed 11

Currently in my ApplicationController I have this piece of code to add a custom default parameter

def default_url_options
  super.merge(
    some_key: some_value
  )
end

It works as my expectation except a simple_form where I use a get method

= simple_form_for @form, url: a_path, method: :get, data: { turbo_action: :replace, turbo_frame: :a_frame_id }

Could someone explain and show me how to add default_url_options to this get form please?

0 Answers
Related