Example of a working Rails CRUD app using gem 'will_paginate', '~> 3.0.7' to implement endless/infinite scrolling.
The gem 'faker'
was used to seed the project with fake data.
Clone the repo:
git clone [email protected]:KelseyDH/will_paginate_endless_scroll_example.git
cd will_paginate_endless_scroll_example
Install dependencies:
bundle install
Migrate & Seed database:
bundle exec rake db:migrate db:seed
That's it, it's ready to go.
Run like a normal rails app:
rails s
Then visit http://localhost:3000/
Contributions are welcome! Just send me a pull-request.
- Code guide on how endless scrolling was implemented for this app can be found here: http://richonrails.com/articles/endless-scrolling