...

/

Refactoring Pagination

Refactoring Pagination

Learn to optimize the pagination commands used in the last two lessons

We'll cover the following...

Often, experienced Rails developers like to keep things DRY DRYDon’t Repeat Yourself is a principle of software development aimed at reducing the repetition of software patterns.. The code we just wrote is duplicate, however. It’s a good idea to clean up the code once the functionality is implemented.

We will first clean up the tests that we duplicated in the files ...