I ran into a problem with sorting a table (rendered in a partial) using
the sort_link_helper methods after I have submitted data and re-rendered
the table through an AJAX request.
The setup is a follows:
The table is a shared partial of Controller1 and Controller2 accessible
via “shared/table”. The AJAX’ed sorting using the sort helper works all
fine on Controller1.
An AJAX link in the table refers to a method named “mymethod” on
Controller2. Controller2 does what is expected from it and does a render
:partial => “shared/table” and the table is correctly displayed.
However, the links generated by sort_link_helper change to the format of
instead of the expected (or desired)
The corresponding method in Controller2 looks like this:
… some code
render :partial => “shared/partial”, :layout => false
How can I tell the rendered partial to use links based on
“/controller1/list”? Thanks a lot in advance.