- Rails demo app
- Re: how to set up pagy.
- Can be used to reproduce bugs.
Please check out other pagy demo apps if you want to see samples of how other functionality can be set up.
- Rails: 8.0.0
- Ruby: +3.2.0
- Importmaps
- Propshaft
master
- for offset pagination.keyset
- for keyset pagination.offset
- for offset based pagination.
Check out the commit history, depending on the branch you choose.
rake db:migrate db:seed
The following sets up the database, and "seeds" it - i.e. filling it with 1000s records.
./bin/dev
# starts the rails server
Point your browser to: http://[::1]:3000 and you should see pagy functioning.
MIT
-
If I've made a mistake please feel free to raise an issue.
-
PRs fixing bugs or updating gems etc will be welcomed!
Credit: https://youtu.be/bVvLNpJyZuw