Question: I'm making a rails app that handles many, many posts. What i want to do it display the posts over *x* number of pages with 5 posts per page. I've looked around a lot and have not been able to find a solution. I'm new to ruby on rails and don't yet know enough to be able to separate the posts by page.

Answer: 
There are two gems that could help you: [will\_paginate](https://github.com/mislav/will_paginate) or [kaminari](https://github.com/amatsuda/kaminari).
Take a look at the mysql limit clause. There's a good tutorial here that gives specifics on using it for paging. The tutorial is for PHP but you only really need the concept in order to apply it to rails.

<http://www.tech-evangelist.com/2008/10/16/mysql-limit-paging/>