I've been using SortHelper2 (http://wiki.rubyonrails.org/rails/pages/ SortHelper2) to help with column header sorting in a table. The problem is, it only seems to work in the LIST action/view for any controller. I want to use the sorting helpers in my search_results view page. When I try to add it there, I get errors:
The error occurred while evaluating nil. #{RAILS_ROOT}/app/helpers/sort_helper.rb:53:in `sort_link'
It looks like the "/list" part of the URL is hardcoded in somewhere, when building the link in the "sort_link" function. How can I change this, and if I do change this to say "search_results", will it even work?
Any suggestions appreciated!!
LAB