Stimulus Outlets API
Play
13:57 CC

Stimulus Outlets API

#378 Dec 4, 2022 free
Outlets let you reference Stimulus controller instances and their controller element from within another Stimulus Controller by using CSS selectors. In this episode, we look at a simple example and then refactoring some older code where we used some workarounds to communicate with other stimulus controllers.

Deploying with MRSK
Play
37:42 CC

Deploying with MRSK

#391 Mar 5, 2023 free
Kamal (MRSK) deploys web apps anywhere from bare metal to cloud VMs using Docker with zero downtime. In this episode, we will set up a Digital Ocean infrastructure with a Load Balancer, Virtual Machines, and a PostgreSQL database. We'll use Kamal (MRSK) to provision and deploy our Rails application to the Virtual Machines.

System Tests
Play
19:20 CC

System Tests

#417 Sep 3, 2023 free
In this episode, we look at adding system tests in our application to test our Stimulus Controllers. We'll also look at how to DRY up some of the tests and how to run them in a headless environment.

Securing File Uploads
Play
6:19 CC

Securing File Uploads

#14 Aug 22, 2015 free
Be default, Refile does not have a way to secure file downloads. It relies on a generated hash that is unknown to users unless the page renders that image or has a download to that file. This is okay sometimes, however, protecting the file from being downloaded for those who have the URL is a bit more involved.

Faye WebSockets - Part 1
Play
7:07 CC

Faye WebSockets - Part 1

#22 Feb 23, 2016 free
Using WebSockets, we are able to create a realtime notification between browsers. Useful for in-app messaging, chats, and more! Learn how to use Faye's Publish and Subscribe methods. I believe that this paves the way for successfully using and learning the upcoming ActionCable.