The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Adding keyboard shortcuts and hotkeys to Hotwire apps
A review of the ecosystem for adding hotkeys to your Hotwire apps: stimulus-hotkeys, stimulus-use/useHotkeys, HotKey.js, and github/hotkey [more inside]
Rails log monitoring tutorial
How to build an in-house solution for log monitoring [more inside]
Ruby language evolution on a large scale (as observed from Ukraine)
The blogpost dedicated to the publishing of Ruby Evolution: a brief list of new significant features that emerged in the language since version 2.0 (2013).
How I Built My Code Editor in Ruby
I gave a talk at the Montreal.rb meetup group on 2022-07-07 titled: “How I Built My Code Editor in Ruby” https://andymaleh.blogspot.com/2022/07/montrealrb-2022-07-07-talk-how-i-built.html
RailsLiveReload new release
With the new version rails_live_reload now has improved turbo support, new faster websocket mode and other improvements. https://github.com/railsjazz/rails_live_reload/releases/tag/v0.2.0
Glimmer DSL for SWT Video Tutorial 23 - Game of Life
Desktop development is about 10 times simpler than web development. Learn it and you will become a better web developer as you transfer the simplicity of desktop development to the web! [more inside]
Rubber Duck Dev Show Episode 49 | Fast Text Search In Postgres
Hear two rubyists discuss how to do fast text search in a PostgreSQL database: https://www.rubberduckdevshow.com/episodes/49-fast-text-search-in-postgres/
Rails and AvoHQ tutorial
AvoHQ is an alternative to administrate or madmin. A hands-on tutorial. https://www.bootrails.com/blog/rails-avohq-tutorial/
[Screencast] Multifactor Authentication via TOTP with Rodauth
See how to add Time-based One-Time Password to a Rails app using Rodauth. https://youtu.be/9ON-kgXpz2A
12 Ways to Improve Your Monolith Before Transitioning to Microservices
Like tidying up a house before a total renovation, preparing your monolith is the first step towards transitioning to microservices. [more inside]
Get Started with Hotwire in Your Ruby on Rails App
Learn the basics of Hotwire and how to use it in your Rails app. https://blog.appsignal.com/2022/07/06/get-started-with-hotwire-in-your-ruby-on-rails-app.html
Use React & Hotwire Together. The Best of Both Worlds.
In this video, we’re looking at how you can use React components with Hotwire. https://youtu.be/_w_S4J1q7ds
A guide to updating your CircleCI config to run Ruby 2.7.6 or 3.1.2
I ran into issues trying to run Ruby 2.7.6 in a Rails app that was using the deprecated “circleci/” images. I wrote a guide that shows how to Run Ruby 2.7.6 or 3.1.2 in CircleCI using the newer orbs and “cimg/” images. I hope it helps someone!
[Podcast] Code and the Coding Coder who Code it - Episode 8 - RailsConf: HomeEdition
New Episode of the Code and the Coding Coder who Code it podcast is out! This episode was a special one for me. I was invited to be on the podcast panel at RailsConf: HomeEdition! The panelists and I discuss what we’re all up to, if you can still build a career in ruby (spoiler: You can!), and how our ecosystem can benefit from more Ruby frameworks and podcasts. [more inside]
Multi-tenancy vs. Action Cable: Introducing Action Cable command callbacks
This blog post introduces the upcoming Action Cable API—command callbacks, which could be useful, for example, to make connections and channels tenant-aware in a simple, controller-like, way.
[Screencast] File Uploads and Cloud Storage
AWS S3 has been a reliable service over the years and for a long time it was the only option. However, in the past few years, there has been more cloud storage options that have popped up with compatible S3 APIs. These services can sometimes offer better pricing and speeds. https://www.driftingruby.com/episodes/file-uploads-and-cloud-storage
Ruby Enumerable Module
Definition and explanations about the enumerable module : https://www.bootrails.com/blog/ruby-enumerable-module/
Rubber Duck Dev Show Episode 48 | Ruby Fibers
Hear two rubyists discuss Ruby Fibers how they work as well as the enhancements offered by Ruby 3. Lastly, we cover Ruby Sets and their benefits: https://www.rubberduckdevshow.com/episodes/48-ruby-fibers/
Glimmer DSL for SWT Video Tutorial 22 - Hello, Canvas Drag and Drop!
Desktop development is about 10 times simpler than web development. Learn it and you will become a better web developer as you transfer the simplicity of desktop development to the web! [more inside]
[Guide] How to Contribute to Ruby on Rails
If you ever get to the Ruby on Rails repository hoping to contribute you see +384 open issues. Which one should you pick? How do people even get started? Even worse: they all seem pretty hard. [more inside]
Ruby-on-Rails, TailwindCSS : a tutorial
This time will be more about opinions than technique, but you can still try Tailwind with Rails this way : [more inside]
Randomly failing system tests with slow-scrolling Chrome
The excitement of a new mac quickly died with the introduction of randomly failing system tests. [more inside]
Release Management for Microservices
Releasing microservices applications is hard when code is scattered among dozens of repos. Here’s why using a monorepo might make more sense. [more inside]
The most underrated Rails helper: dom_id
One of the oldest helpers in Rails is also the most underrated. dom_id shines for building apps with Hotwire, allowing you to easily target parts of the page without a bunch of nasty string interpolation. [more inside]