Open bingxie opened 8 years ago
The reason is related to @output_buffer variable form ::ActionView::Context doesn't get set. But I don't knew how to fix it.
Finally, I got a fix. don't use paginator.render, directly use paginator.***_tag methods.
Kaminari monkey patch
Kaminari::Helpers::Paginator.class_eval do
def render(&block)
instance_eval(&block) if @options[:total_pages] > 1
end
end
Thanks @xzo
Maybe this StackOverflow question is a similar related problem?
I experienced the same problem on kaminari (0.17.0), kaminari-cells (0.0.4) and cells (4.1.3)
This seems to be the cause http://stackoverflow.com/a/37537318/4273180
I found in the default kaminari view(_paginator.html.slim), the method paginator.render return nothing. I am not sure what is the right way to generate the view.
cells: 4.0.3 kaminari: 0.16.3