Bulk Updates
Play
18:58 CC

Bulk Updates

#447 Mar 17, 2024 pro
Updating multiple records in the UI of a Rails app could be tricky. In this episode, we'll look at updating multiple records at the same time from scratch. We'll create a Stimulus controller to handle some of the front end functionality.

Database Transactions
Play
9:47 CC

Database Transactions

#377 Nov 27, 2022 pro
Transactions are protective blocks where SQL statements are only permanent if they can all succeed as one atomic action. In this episode, we explore ActiveRecord Transactions and how to use them.

Partial Inserts
Play
5:37 CC

Partial Inserts

#360 Jul 31, 2022 pro
Parsing through the Ruby on Rails CHANGELOG can reveal some interesting features and changes in the framework. In this episode, we look at one of those changes around inserting records into our database.

Active Record Tricks
Play
11:25 CC

Active Record Tricks

#347 May 1, 2022 free
In this episode, we look at tips and tricks from read only attributes, inserting and upserting (update or insert) records, toggling booleans, and single table inheritance.

Soft Delete with Discard
Play
6:53 CC

Soft Delete with Discard

#249 Jul 5, 2020 free
Soft deletes for ActiveRecord done right.