Category: Ruby on Rails

  • Rails 7: Tabulator & Stimulus – Ruby on Rails Tutorial

    Rails 7: Tabulator & Stimulus – Ruby on Rails Tutorial

    This is turning into a little series for me! I am loving moving things out of my html.erb files and into Stimulus controllers. It is cleaning things up and making things faster. Win-win! Also I will be covering how to do inline editing with Tabulator (including sending the changes to Rails and saving them) 00:00…

  • Rails 7: Tabulator & Stimulus – Ruby on Rails Tutorial

    Rails 7: Tabulator & Stimulus – Ruby on Rails Tutorial

    This is turning into a little series for me! I am loving moving things out of my html.erb files and into Stimulus controllers. It is cleaning things up and making things faster. Win-win! Also I will be covering how to do inline editing with Tabulator (including sending the changes to Rails and saving them) 00:00…

  • How to track conversions with Google Ads and Google Tag Manager + send dynamic values

    How to track conversions with Google Ads and Google Tag Manager + send dynamic values

    Learn how to track conversions with Google Ads and Google Tag Manager and how to send dynamic values to Google Ads In this video, I will explain: * the basics of Google Ads conversion tracking * how to setup Google Ads Conversion Tracking with Google Tag Manager * How to track static and dynamic conversion…

  • Continuous Integration for Rails with Travis & GitHub

    Continuous Integration for Rails with Travis & GitHub

    In this video, I take the Contractometer project from earlier lessons and integrate it with Travis for Continuous Integration (i.e. auto-building and testing). Travis: https://travis-ci.com What is continuous integration anyway? Essentially, you check your code into a central repository (i.e. Github) and automated building is done to see if your code can run, and tests…

  • Stimulus, Hotwire, Bootstrap 5, Rails 6 – and a viewer question!

    Stimulus, Hotwire, Bootstrap 5, Rails 6 – and a viewer question!

    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. Timestamps: 00:00 Introduction – Explanation 02:33 Environment 03:15 Create Rails app 04:04 Install Hotwire/Turbo…

  • 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…