This ought to be very simple in Rails, but I’m still learning…
My code
Sort by <%= select_tag :sort, options, :onchange => "google.com" %>
should redirect to a page (google is just being used as a placeholder) when the criterion for sorting is changed.
In case it matters, it’ll just be going to the same page, but with ?sort=sort type appended.
Thanks!
How about calling a js function through the onchange attribute?
The js might be something like: