Search (reset)

Episodes

Like Relationships and Global ID

Episode #223 1-5-2020 free

In this episode we create a Like/Unlike system where users can like posts and use Global ID to obfuscate IDs.

Grab Bag of Ruby and Ruby on Rails Tricks

Episode #158 11-4-2018 free CC

In this episode, we look at various tips and tricks.

Polymorphic Associations

Episode #98 9-17-2017 free

Advancing from Single Table Inheritance, learn how Polymorphic Associations differ and tricks to simplify their usage.

Single Table Inheritance

Episode #97 9-10-2017 free

Learn to use single table inheritance to allow multiple classes to be stored in the same database table.

Counter Cache Associations

Episode #78 5-1-2017 free

When displaying a count of records, this will generate extra SQL Queries. Learn how to reduce the number of SQL queries called with counter caching the number of associated records.

Eager Loading with Goldiloader

Episode #30 5-23-2016 free

Wouldn't it be awesome if ActiveRecord didn't make you think about eager loading and it just did the "right" thing by default? With Goldiloader it can!

Deleting and Undeleting with Paranoia

Episode #19 10-7-2015 free

When your app is using Paranoia, calling destroy on an ActiveRecord object doesn't actually destroy the database record, but just hides it.

Annotate

Episode #11 8-7-2015 free

With strong params replacing attr_accessible, a difficulty has arisen with referencing to the structure of your models. With annotate, we can generate the structure of our models in the comments of our models.

Florrick

Episode #5 7-24-2015 free

This is a Rails library which integrates with Active Records and provides some awesome user-initiated string interpolations for your web apps. For example, have you ever needed to allow users to insert their own variables into e-mail templates or messages?

Serialized Attributes

Episode #4 7-22-2015 free

Store multiple attributes and values using a text column. Not for everyday use, but has situations where it can save on the number of columns and/or models needed to accomplish a task.