Author: phil

  • Debugging Rails

    Debugging Rails

    Sometimes (read: always) you will need to debug your Ruby on Rails application. In this video, I cover some of the gems and methods you can use to do that!

  • Changing a Rails App from Mysql to Postgres

    In this video, I take a real, live Rails (5) app and switch it from using MySQL to using Postgres. Of course, most of this is not about switching it is about moving the data from one database to the other. I show you how to do that. I’ll be using Docker to quickly host…

  • Stimulus, Hotwire, Bootstrap 5, Rails 6

    Stimulus, Hotwire, Bootstrap 5, Rails 6

    In this episode I tackle (kind of) a question put forward by a viewer on another video – handling the showing of duration in Rails. To do that I create a new Rails6 app and plug in Stimulus.js, Hotwire/Turbo and Bootstrap5.

  • Using Docker for your Rails App in Production

    Using Docker for your Rails App in Production

    I go over my opinions and experience in trying to get a Ruby on Rails app onto a remote server in Production mode. It wasn’t a good time. In the video, I mention how I do deployments. You can see a full video on that here: https://youtu.be/CZtYDplotiI (though it is probably time I do a…

  • Writing Solid Ruby Code

    Writing Solid Ruby Code

    A long time ago (in a galaxy far, far away) I read the book ‘Writing Solid Code’. Here’s my version of the top points from that book, but adapted for Ruby.

  • Turning a Rails 5 gem into a Rails 6 Engine

    Turning a Rails 5 gem into a Rails 6 Engine

    With Zonmaster (https://public.zonmaster.com) we are/were stuck on Rails 5 because the tenanting gem we use (Milia) isn’t Rails 6 compatible. Let’s fix that! Sorry for the rambling, I don’t have a lot of time to structure the videos so I just start and go! I’m working on a new project that hopefully someday I will…

  • Using Docker for your Database with Rails

    Using Docker for your Database with Rails

    In this video, I look at how to use Docker to allow you to quickly and easily run different databases and services on your computer and how to connect your Rails apps to those services. It’s great for when you need to have different versions of database apps for different clients.

  • Datatables & Rails – Basic to Advanced – Ruby on Rails Tutorial

    Datatables & Rails – Basic to Advanced – Ruby on Rails Tutorial

    A monster of a video here! I cover using Datatables – the amazing JQuery plugin that gives you great-looking and behaving tables – in a Ruby on Rails 5 app. Going from creating the app all the way up to some sophisticated styling.

  • ElasticSearch and Ruby on Rails – Part 1

    ElasticSearch and Ruby on Rails – Part 1

    Recently I have been using two databases in my large Rails projects – 1, an RDBMS like MySQL, as a data store and another – ElasticSearch – as a denormalized document store that drives the front end data. In this video, I go over how to get ElasticSearch into your Rails project and get the…

  • Introduction to Hotwire – Ruby On Rails

    Introduction to Hotwire – Ruby On Rails

    Another one for Ruby on Rails developers! Hotwire is a ‘better’, simpler way to get dynamically updated content onto your web pages and create a more consistent experience. BUT the real positive, for us Rails developers, is that you can do this using essentially the same CRUD actions and partials that we already have in…