Closed abevoelker closed 4 years ago
@abevoelker We have mention it here since the first place https://github.com/Uysim/pagy-cursor#usage. Am I correct?
Not quite. Just doing what the README says:
require "pagy_cursor"
results in this error for me:
undefined method `pagy_cursor' for #<FoosController:0x000055b7076287e8>
This fixed the error:
require "pagy_cursor/pagy/extras/cursor"
Which I found by reading your specs: https://github.com/Uysim/pagy-cursor/blob/13a2503a4249a5a4313aea8ed008ebc6f87452e7/spec/pagy_cursor/cursor_spec.rb#L2
Thanks @abevoelker now I updated the read me
First, thanks so much for the gem.
One thing you may want to add to the README instructions is adding the necessary require statement(s) to the pagy initializer:
At least,
pagy_cursor
didn't work for me in my Rails app until I added the first line toconfig/initializers/pagy.rb
. Thanks again.