Posted about 4 years ago. Visible to the public.



  • Understand why we use pagination
  • Understand some pros and cons of replacing pagination with "infinite scrolling"


  • Create 7500 movies in MovieDB (hint: Doing it in a single transaction is much faster). Load the movies index and measure how long it renders.
  • Use the will_paginate gem to add pagination to MovieDB's list of movies. How long does the movies index render now?
  • Inspect the HTML generated by will_paginate. Customize the style so it matches the look of your MovieDB.
  • tail -f log/development.log and see which queries will_paginate generates. What do they do?

Owner of this card:

Henning Koch
Last edit:
about 1 month ago
by Stefan Wagner
Posted by Henning Koch to makandra Curriculum
This website uses cookies to improve usability and analyze traffic.
Accept or learn more