0

In rails, does mongoid-pagination have a view helper that will automatically render the pagination links on a view on which it is applied? Do I have to build my own one instead.

For example with Kaminari you can use <%= paginate @pets %> on your view and you get the pagination links ( Prev 1 2 3 Next ).

General_9
  • 2,249
  • 4
  • 28
  • 46

1 Answers1

0

Kaminari can actually support Mongoid. Maybe you can explore that area.

MervS
  • 5,724
  • 3
  • 23
  • 37
  • Yes I already have Kaminari in place. I was trying to avoid adding a gem which brings capabilities that are already provided by the Mongoid driver. – General_9 May 16 '13 at 05:38