Save 36% for Black Friday! Learn more

Sorting Blog Posts With Scopes

April 3, 2023

Track your progress

Sign in to track your progress and access subscription-only lessons.

Log In

Your Teacher

Hi, I'm Chris. I'm the creator of GoRails, Hatchbox.io and Jumpstart. I spend my time creating tutorials and tools to help Ruby on Rails developers build apps better and faster.

About This Episode

Scopes are a way for us to change the way a database table is queried. For example, we can use them to change the ordering of the results so certain records are first.