kovacs / sortable

Rails plugin to produce a sortable, paginated, searchable table for any model. Licensed with the same MIT license as rails
http://www.cablecarsoftware.com
39 stars 10 forks source link

Sortable should play well with inherited_resources #2

Open sbwoodside opened 14 years ago

sbwoodside commented 14 years ago

Basically inherited_resources and sortable both do finds. I really don't know how this would work but it would be nice if they could play well together. Possibly using HasScope? Not quite sure.

It seems to me that if sortable were broken into two pieces -- first the part that determines what query to run, and then the second that displays the results, then inherited_resources could maybe be inserted in the middle or at least the first part could be modified without mucking with the view side of things.