-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
None
I had in place a working configuration :
'mongoid - 2.0.2, bson - 1.3.1, bson_ext 1.3.1 and kaminari - 0.12.4'
but after upgrading to 'mongoid 2.2.0, bson 1.4.0, and bson_ext 1.4.0' ( same kaminari )
First/Previous/Next/Last in the view doesn't show up anymore.
No erroros, nothing, just they don't show up. in my controller I had :
repos = current_user.watchlists.page(params[:page]).per(10)
@watched_repos = repos.desc(:watchers, :pushed_at)
which calls mongoid "embedded one to many" model, while in app/views/kaminari/_paginator.html.haml I have:
<pre>
= paginator.render do
%nav.pagination
= first_page_tag unless current_page.first?
= prev_page_tag unless current_page.first?
- each_page do |page|
- if page.left_outer? || page.right_outer? || page.inside_window?
= page_tag page - elsif !page.was_truncated?
= gap_tag
= next_page_tag unless current_page.last?
= last_page_tag unless current_page.last?
</pre>
I've no idea where to start debugging this.
Any help ?
Thanks in advance
Luca