krunal shah
krunal shah

Reputation: 16339

Sorting on view side with Rails

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

Answers (3)

John Beynon
John Beynon

Reputation: 37507

Jquery Tablesort works great - all client side.

Upvotes: 0

raid5ive
raid5ive

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

Jonah
Jonah

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

Related Questions