With the standard Rails form_for, I was able to pass ajax requests though select and collection_select helpers as such:
<%= address.collection_select :cou
It is better to write it like this:
= simple_form_for sample_result, url: reject_sample_result_path(sample_result), method: :post, remote: true, input_html: {multipart: true} do |f|
When you explicitly declare data-url
it will still first do the default route calculation, which in my case failed because the default routes did not exist (and should not exist --since I am overruling the url). When you declare just url
it will just take the given url instead.