Hi I have this list page that has some rjs templates updating parts of
it including a table of results. i’m trying to put pagination on the
table. thing is lots of different actions update the table and they have
their own paginators.
anyway i have this code at the bottom which worked for another page
<%=
pagination_links_each(@offer_pages,:window_size =>4) do |n|
“<a href=”#" onclick=“new
Ajax.Request(’/user/choose_offer?page=#{n}’, {asynchronous:true,
evalScripts:true}); return false;”>#{n}"
end
%>
but i need to right it so that the calling action is substituted into
where choose offer is now…
so how do i get the name of the action that rendered the page?
Just starting out with rails so forgive me if this code looks horrible.
thanks in advance
c