I want to use pagination with ajax. I have used will_paginate then add
code to support ajax pagination.
I have tried with partial with when I use the code
in index.html.erb
<div id="container">
<%= render :partial => 'contents' %>
</div>
hi Patrick Doyle,
Thx for you reply.I have tried according to your code
but it don't display result but shows the
javascript code with the result. Below is the javascript that output in
the html page when I click the next link.
Golly, I don’t know. I would guess that if you are seeing javascript in your browser, then somehow you are not responding to a javascript request, but I really don’t understand enough of how things work “under the hood” to know how that might happen.