Matt Harrison wrote: > Hi all, > > I've got a list of machines with columns like so: > > Hostname, Operating System, Location > > I have setup pagination with paginating_find and that works nicely. I > have also setup column sorting with my own little helper and > controller code. Because I wrote the helper myself I have got it to > preserve the page parameter when changing sort mode. > > So when you move to a certain page and do a sort, the page is kept in > the same place. However, if I sort a column and then change to a > different page, the sorting reverts to the default which makes > changing the page useless a lot of the time. > > What is the preferred method to combine column sorting and pagination > easily? This must be a fairly common exercise but I can't get my head > round how to do it. > > Any help would be appreciated.
Can't believe no-one has any ideas about this, maybe it just got buried under all the other mail. Grateful someone could take a sec to help me :) Thanks Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---