mardi 14 mai 2019

How to hold the checkbox params in rails after search

The search is working fine but the problem is that when i print the excel report according to the result.it is showing all the values in the database, filter is not working. Reloading all over the page, then Checkbox true values are gone. How to hold the params after refreshing the page

In my view,

.col-md-3
= check_box_tag "search_customer_supplier[accounts_dealer_types.dealer_code][]","CUS", false
= label_tag "Organizational Customer"
.col-md-3
=check_box_tag "search_customer_supplier[accounts_dealer_types.dealer_code][]", "SUP", false, class: "first_resolution"
= label_tag "Organzational Supplier"
.col-md-3
= check_box_tag "search_customer_supplier[accounts_dealer_types.dealer_code][]", "INDCUS", false, class: "first_resolution"
= label_tag "Individual Customer"
.col-md-3
= check_box_tag "search_customer_supplier[accounts_dealer_types.dealer_code][]", "INDSUP", false, class: "first_resolution"
= label_tag "Individual Supplier"

Aucun commentaire:

Enregistrer un commentaire