Once again I go to the RoR group for help.
I have an application that is completely RESTful. I have a formatted
call to one of my resources that is;
and it calls and RJS file that reloads all the partials on the page
and displays some new information. ( in this case it's service
tickets, and when I click on a specific radio box it loads some
different tickets )
My problem is that it would seem that Will Paginate makes use of
calling tickets.js when it's trying to paginate through the
tickets... and the format.js line in my index action for the tickets
controller is causing the pagination not to work... instead I get a
If I remove the format.js line from the index action, the pagination
works... but then my radio buttons don't cause the AJAX reload.
My question is, how can I get around this? Should I make a new
formatted type for the AJAX call, or is there some other way of
getting around this. like if it's will paginate, then format.js
returns the next 10 tickets and if it's the radio box calling
format.js then it runs the index.rjs file? Maybe through params?
Any help would be appreciated.