# Seek recommendations for sortable, paginating table that accepts 'delete' selection

**URL:** <https://www.ruby-forum.com/t/seek-recommendations-for-sortable-paginating-table-that-accepts-delete-selection/193616>\
**Category:** Rails\
**Created:** [August 20, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/seek-recommendations-for-sortable-paginating-table-that-accepts-delete-selection/193616 "2010-08-20T17:34:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lille](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f4b2a3/32.png) [@Lille](https://www.ruby-forum.com/u/Lille)\
**Post date:** [August 20, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/seek-recommendations-for-sortable-paginating-table-that-accepts-delete-selection/193616/1 "2010-08-20T17:34:16Z")

</div>

Hi,

I’ve been happily using the tablesorter plugin with pagination for  
jQuery in my rails app, but now I’m having a tough time integrating  
Railsian behavior like checkboxes that result in the deletion of data  
presented in table rows, etc. (behavior adapted from Ryan B.’  
Railscast ‘#254 - Edit Multiple’.)

Any recommendations?

Lille

---

<div class="post-metadata">

**Author:** ![Lille](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f4b2a3/32.png) [@Lille](https://www.ruby-forum.com/u/Lille)\
**Post date:** [August 22, 2010, 5:01am UTC](https://www.ruby-forum.com/t/seek-recommendations-for-sortable-paginating-table-that-accepts-delete-selection/193616/2 "2010-08-22T05:01:18Z")

</div>

On Aug 20, 11:32 pm, Lille [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Lille  
> Lille,

I dont know much about the sortable table plug-in but have addressed  
the issue of bulk editing by adding a check\_box\_tag to each table row  
which generates the items id. Then underneath the pagination I have an  
empty form with a path to the edit multiple action and a submit  
button. Elsewhere I have a batch edit button, I have then written a  
jquery function which 1) hides the empty form at the bottom on load.  
2) upon selection of any of the table row check boxes and the clicking  
of the batch edit button, clones the id’s of any selected checkboxes  
into the form at the bottom and then submits the form. This was for a  
backend so I was not so concerned that the javascript didnt degrade  
gracefully. But it was the easiest way to have multiple forms on a  
page in an “index”/table type structure.

Hope this is helpful.

David
