I want to click a heading and then sort the elements below it. So I have added link_to like this:
%th= link_to "Title"
after this I need to add parameter to send to my controller to sort the list. How do I add parameters? say the list needs to be sorted by "title" of the object.
And which function in my controller will receive the parameter?
I am a newbie so having trouble n tracing the data flow.