Hey...
i want to sort some of my data-tables with an application-helper named
"sortable(fieldname)"
in this helper i want to define a link with following schema,
depending on params[:direction]:
link_to fieldname, request.url + ''?order=desc'' (or asc)
but this link isn''t correct if I click on it several times:
http://localhost:3000/drafts/222/stats_details?direction=asc?order=Kontakt&direction=desc?order=Kontakt&direction=asc?order=Kontakt&direction=asc?order=Kontakt&direction=asc
Can somebody give me a hint?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---