Mohit Sindhwani wrote:
Hi, I'm looking at using my table headings as links that reload the page and sort it by the field which was clicked on. As is common, if the list is already sorted by the field, it reverses the order. I'm now looking at a good DRY way to do this.
Will you please help me in the same code. Can you suggest me where you declared or initialized params[:v_order] because it's not working fine. It is always taking a single value so no change is there.
or if you have got another DRY way just help me
Thanks