Skip to content
New issue

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

pagination helper raises ArgumentError #8

Open
snex opened this issue Feb 20, 2024 · 2 comments
Open

pagination helper raises ArgumentError #8

snex opened this issue Feb 20, 2024 · 2 comments

Comments

@snex
Copy link

snex commented Feb 20, 2024

 ArgumentError - wrong number of arguments (given 0, expected 3) (ArgumentError):
	.rvm/gems/ruby-3.2.1/gems/actionview-7.1.3/lib/action_view/base.rb:228:in `initialize'
	.rvm/gems/ruby-3.2.1/gems/kaminari-sinatra-1.0.1/lib/kaminari/helpers/sinatra_helpers.rb:30:in `initialize'
	.rvm/gems/ruby-3.2.1/gems/kaminari-sinatra-1.0.1/lib/kaminari/helpers/sinatra_helpers.rb:94:in `new'
	.rvm/gems/ruby-3.2.1/gems/kaminari-sinatra-1.0.1/lib/kaminari/helpers/sinatra_helpers.rb:94:in `paginate'
	views/index.erb:13:in `__tilt_1140'

I see no commits in 3 years. Is this project even still alive?

@yuki24
Copy link
Member

yuki24 commented Feb 20, 2024

We are still here. Could you provide an example that replicates your issue so we can look into it?

@snex
Copy link
Author

snex commented Feb 20, 2024

Just merely doing a "<%= paginate @models %>" on a view seems to cause the error. However I have switched to pagy which seems to work so I won't be able to supply any further info.

It looks like the call to "super()" on line 30 of sinatra_helpers.rb is out of date compared to what action_view expects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants