Skip to main content

All ActiveRecord Episodes

23:39
Dynamic Nested Forms with Stimulus JS
#283 · Pro

Don't like Cocoon or it's jQuery dependency? We can use Stimulus JS and build dynamic nested forms in Rails with accepts_nested_attributes_for from scratch pretty easily!

11:01
Autosave Draft Records - Part 2
#282 · Pro

Creating draft records in your database can be tricky. We'll be using the Draftsman gem to help us create draft versions of our records with our autosave Javascript

17:20
Autosave Draft Records - Part 1
#281 · Pro

Autosaving draft records allows you to make sure users don't lose their work and can easily write draft content without publishing right away. We'll be using Stimulus to build an autosave controller for our form and Draftsman to power the backend.

10:16
Handling First & Last Name with the name_of_person gem
#267 ·

Deciding whether or not to have separate first and last name fields gets a bit confusing. Basecamp's recently released name_of_person gem shows you exactly how to handle this reliably and also stands as a fantastic example of how to build a concern

17:32
Reddit style comment thread pagination
#266 · Pro

Adding pagination to our nested comment threads is easier than you might think, plus we'll take a look at a couple different approaches we can use

6:16
Deleting Comments In Nested Threads
#265 · Pro

Nested comment threads pose a lot of unique challenges. One of these is deleting comments because you can easily lose the child comments or context. We'll take a look at a couple great ways of handling this.

14:04
Nested Comment Threads in Rails - Part 3
#264 · Pro

Using AJAX, we can submit our comments and have them render onto the page without a page refresh.

20:43
Nested Comment Threads in Rails - Part 2
#263 · Pro

Implementing polymorphic, reusable comments across models and limiting the nesting allowed for nested comment threads

22:06
Nested Comment Threads in Rails - Part 1
#262 · Pro

How to build nested comments and threads in Ruby on Rails

18:07
Charts with Chartkick and Groupdate
#194 ·

Add various types of charts to your Rails app with Chartkick and use Groupdate to make easy group queries in SQL

Subscribe to the newsletter

Join 20,000+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.