Category: Ruby on Rails

  • Rails 5 Gem to Rails 6 Engine

    Rails 5 Gem to 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 some day I…

  • 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 in a Ruby on Rails 5 app. Going from creating the app all the way up to some sophisticated styling. 00:00 Introduction 02:00 Create Rails app with Dummy Data 11:48 Add Bootstrap 15:10 Add Datatables 20:00 Make it better 33:05 Add Select Box 42:40 Next…

  • ElasticSearch and Ruby on Rails – Part 2 – Tips

    ElasticSearch and Ruby on Rails – Part 2 – Tips

    Part 2 of my look at using ElasticSearch with Rails. This is more a collection of bits that I find I need. 00:00 Introduction 01:20 Non-ActiveRecord Models into ElasticSearch 14:34 The Presentation Model 18:54 Caching 21:11 Change Things! New Indexes and Fields References: Read about the Presentation Model Pattern here: – https://docs.microsoft.com/en-us/archive/msdn-magazine/2009/february/patterns-wpf-apps-with-the-model-view-viewmodel-design-pattern Check out the…

  • Quick Rails Tips – Empty ActiveRecord Association return initialize

    Quick Rails Tips – Empty ActiveRecord Association return initialize

    Just a quick tip for Ruby on Rails today. I saw a few people (including me some time ago!) struggling with the fact that sometimes you return a valid ActiveRecord association, and sometimes you return nil (or an empty array). That makes things further down the pipe a bit of a hassle. But there is…

  • Rails: ActiveRecord::Store – What it is and how I use it. (Rails Tutorial)

    Rails: ActiveRecord::Store – What it is and how I use it. (Rails Tutorial)

    This time I look at another interesting part of Rails 6 – the ActiveRecord::Store module. It’s a great way to add ‘blob-like’ functionality to your models for those fields you don’t need to search. Some people online just talk – I just do. One of my major SaaS products out there is Zonmaster.com (https://public.zonmaster.com) THE…

  • Rails 6.1 with ActionCable and Stimulus2 – Real-Time Programming Tutorial

    Rails 6.1 with ActionCable and Stimulus2 – Real-Time Programming Tutorial

    Back again with another Rails talk! Today I do a quick run through of getting Rails 6.1 working with ActionCable and Stimulus (or Stimulus JS, if you prefer). And no, I’m not doing a messaging app, I am doing an app that pushes out object updates to a webpage. I am using the new Stimulus…

  • First Look: Sharding in Rails 6.1

    First Look: Sharding in Rails 6.1

    Rails 6.1 was released as a stable build not so long ago. One of the features I was interested in is the support for sharding. In this video I take my first look at it. 00:00 Introduction 01:00 Setup 02:30 What is Sharding? 06:00 Configure and Create the DBs 08:35 Put data in the database…