Hi, I have a question about sorting a RESTful application. On my index page there are several types of videos I would like to sort, ranging from new, to top rated and more, and beyond that I would like the user to, for example, sort the ratings from least to greatest and vice versa, or from most viewed to least viewed (and vice versa). To do so I made up two params in my link_to e.g. :kind => "new", :sort => "bottom" for whenever the user clicks these two scenarios. In the controller I have if statements set up to handle each one with call to methods in the model depending on the scenario. I can''t help but just feel I''m going about this the wrong way. Does this make sense what I''m trying to do and if so am I going about it the right way. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---