We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try using pagy-cursor I receive exception. Here's how I use it:
p = pagy_cursor(User.all) pagy_nav(p[0])
Here's what I get:
> pagy_nav(p[0]) NoMethodError: undefined method `-' for nil:NilClass from /home/senya/.rvm/gems/ruby-3.2.2/gems/pagy-6.0.4/lib/pagy.rb:56:in `series'
Besides, any methods from pagy return nil:
pagy
nil
[89] pry(#<>)> p[0].count => nil [90] pry(#<>)> p[0].page => nil [91] pry(#<>)> p[0].pages => nil [92] pry(#<>)> p[0].series NoMethodError: undefined method `-' for nil:NilClass from /home/senya/.rvm/gems/ruby-3.2.2/gems/pagy-6.0.4/lib/pagy.rb:56:in `series' [93] pry(#<>)> p[0].next => nil [94] pry(#<>)> p[0].last => nil [95] pry(#<>)> p[0].vars => {:page=>1, :items=>20, :outset=>0, :size=>[1, 4, 4, 1], :page_param=>:page, :params=>{}, :fragment=>"", :link_extra=>"", :i18n_key=>"pagy.item_name", :cycle=>false, :request_path=>"", :arel_table=>.......
pagy-cursor version I use is 0.6.1
pagy-cursor
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I try using pagy-cursor I receive exception. Here's how I use it:
Here's what I get:
Besides, any methods from
pagy
returnnil
:pagy-cursor
version I use is 0.6.1The text was updated successfully, but these errors were encountered: