vendredi 8 juillet 2016

rails Edit multiple rows of data with update_all using datatables server-side processing

Im using http://ift.tt/1DpKbHI for server side processing on datatables since I have over 1000+ rows. I want to be able to select multiple rows and be able to update_all like what railscast #165 have but I dont know how to put a check_box on ajax-datatables-rails. I saw this one http://ift.tt/1ykkJ69 but how do i pass the ids and how to incorporate it to ajax-datatables-rails? i tried doing check_box_tag("product_id[]",record.id) but in ajax-datatables id is not recognize.

Aucun commentaire:

Enregistrer un commentaire