Reputation: 16339
How to set up sorting on view side with Rails ?
What is the best way in Rails to setup Sorting on view side ?
Upvotes: 0
Views: 463
Reputation: 6642
By sorting do you mean allowing the user to toggle how data in a table (or the like) is sorted? If so, I'd check out a recent episode of railscasts by Ryan Bates on MetaWhere and MetaSearch.
Upvotes: 1
Reputation: 17958
Perhaps something like http://datatables.net/ but it depends on what sort of data you plan to sort, how you need to sort it, and if you can afford to load all of it client-side or not. If you add more detail to your question you can probably get a better answer.
Upvotes: 0