Closed gbirchmeier closed 12 years ago
Looks like the :locals
thing flat-out doesn't work.
I got around this by assigning class variables, e.g.
In controller:
@total_entries = x
@current_page_entries = y
respond_with @products
In application.datatables.jsonify, you can see the @total_entries
and @current_page_entries
variables.
Kind of a kludge, but it works.
It seems locals do not work anymore in this case. I moved params to globals as from your example and will release it in the next version.
From the readme "Custom pagination implementations" section:
This does not appear to work. In application.datatables.jsonify, the variables
total_entries
andcurrent_page_entries
remain unset.