remote select, controller needs more form data
问题 I have two select fields in a form. Every time one of these select fields change value, the rest of the form should be changed. I used the following code for the select fields: <%= f.collection_select :model1, Model1.all, :id, :name, "data-remote" => true, "data-url" => "/model3/get_rest_form" %> <%= f.collection_select :model2, Model2.all, :id, :name, "data-remote" => true, "data-url" => "/model3/get_rest_form" %> The problem now is that the model3 controller needs the values of both select