How do you sort table rail plugins?

This is similar to the classic rails situation: I want my index action to display a sorted table of elements. I looked through (and cracked) some plugins, especially butbot sortable_table and Michael Kovacs sortable (the latter is forked and improved ). However, now I have found that sortable is somewhat incompatible with inherited_resources, and I am upset with a patch code that is not supported.

And yet ... everyone has to hit this need for their application, right?

So what is the best solution? Does everyone roll? Is there a plugin I haven't heard about yet? Don't people worry about sortable tables? Is there any javascript / ajaxy function that I should use instead? I would like to find a better solution.

Update: it should be noted that my database table is too large to load all rows, which will completely destroy performance.

+3
source share
4 answers

jQuery DataTables . , , , Javascript, , .

Rails, .

: , http://datatables.net/examples/data_sources/server_side.html, /. , PHP, : -)

+2

wice-grid, , , , . ;)

+2

YUI.

, .

.

rails YUI - Google "yui datatable rails" - .

0

Source: https://habr.com/ru/post/1751466/


All Articles