Problem in using sorthelper2

Hi
i am using SortHelper2 in my columns and want someone help to solve my
problem.

i have the following url on my site

and i want to append
sort_key=id&sort_order=desc

at the end of my params hash, so the end result would be

http://xyz.ccom/post?options=vteam&sort_key=id&sort_order=desc

Would any body help me how i can append
sort_key=id&sort_order=desc
at the end of my query string.

Thanks in advance

mushii

Hi
Eventually i have been able to solve problem myself.

i made the following modification in the sort_link method

if params[:options]
my_condition = params[:options]
end

params = {:params => {:options => my_condition , :sort_key => sort_key,
:sort_order => order, :search_terms => terms}}

and i got the desired results which i was looking for :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs