Sorting Blog Posts With Scopes

April 03, 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.

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.