Tutorials


Vue 3 And Vuex Frontend With Ruby On Rails 6 REST API Backend Using Axios Calls | 20in20 – Week 15 - YouTube
Today we'll create your own Vue 3 SPA with Vuex and a Quick and easy Rails API backend.This was a question first posited following a video I made covering how to add Vue to Rails. There were also questions regarding what the differences would be b...

RSpec - Request specs vs. Feature specs in Rails - YouTube
In this screencast I introduce a rather small feature to Happi, setting the reply-to address for new threads.The main point of it is to cover writing request specs that give me confidence my code is working and I also explore and write a feature s...

Dynamic form fields with Turbo Frames and Hotwire - YouTube
In this video, I'll show you a neat trick to swap out form fields dynamically using Turbo Frames and a tiny bit of stimulus JS (only ~5 lines). This is something I've used on a few production projects and comes in handy. If you like this content, ...

How to roll your own authentication in Rails - YouTube
In this video, I show you how to make your own authentication in Ruby on Rails, from scratch. We make use of the has_secure_password module (don’t forget to enable the 'bcrypt' gem) and create a login form, logout and all of the helpers you will n...




How to fake time in a Postgres database: And an example Ruby on Rails app, too!
First things first, I am writing this despite my general opposition to faking time. Typically, when invoking an API in a unit or integration test, it’s preferable to pass time as a value as opposed to mutating a global clock. And if you’re writing...