I'm looking for a suggestion on how an end user from files in the form of a Rails application sets the sort order of the result set returned by the find model method. In other words, I would like the user to be able to select their sort order from the selection list.
At first, I thought I could just put the line that I would put in the: order parameter, but that seems like a bad idea from a security point of view.
I suppose I could always use a switch based on the values ββfrom the selection list, but that seems a bit cumbersome.
Thanks for watching.
sorting ruby-on-rails interface
jklina
source share