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.
Understading why attr_accessor in Ruby is faster than a regular method
A post about the performance difference bettween attr_accessor and a regular method (hint: prefer a built–in one, it’s way faster)
ASTs in Ruby - Pattern Matching
First post is out on ASTs in Ruby focusing on Pattern Matching and its applications for both matching against and rewriting code. [more inside]
Containerizing an Existing Rails Application
Containers are popular because they create a reproducible environment that you can deploy to production and run locally in development. However, containerizing a Rails app can be tricky—Jeff Morhous helps us navigate the pitfalls.
Turbo Confirm Modals with Hotwire
Overriding the Rails UJS or Turbo confirm methods has always been a pain. The upcoming release of Turbo supports Promises so we can very easily override the confirm modal. Learn how to make Custom Turbo Confirm Modals with Hotwire
Migrate from webpacker to esbuild
We started off as full stack engineers with our backend and frontend all in one framework. We had the asset pipeline (with sprockets) to help us maintain this ecosystem. When the time came we introduced webpacker to fill in where sprockets fell short. [more inside]
How to Add Infinite Scroll With Hotwire in Under 5 Minutes
In this video, we’re going to look at how you can add infinite scrolling to your Rails app with Hotwire. [more inside]
Hanami Router with TDD
Routing is one of the basic components of any web application. In this episode I’ll dig a bit into the Hanami router from the usage point of view, covering why it’s great and how to work with it. [more inside]
ArrayIncludeMethods Gem Now Supports RubyMotion
The array_include_methods gem v1.5.0 now supports RubyMotion in addition to MRI CRuby, JRuby, and Opal. It provides Array#include_all?, Array#include_any?, Array#include_array?, Array#array_index, Array#array_diff_indices, and Array#array_intersection_indices methods missing from basic Ruby Array API.
download random images from Unsplash
- a very simple way to add realistic images for your Rails app. Could be useful if you build some websites and you miss test images that are suitable for your projects.
The Case for Pattern Matching Key Irreverence in Ruby
Pattern matching in Ruby is an exceptionally powerful feature, but I feel there’s something more we can do to truly make it an incredible interface and that is key irreverence. [more inside]
Rubber Duck Dev Show Episode 45 | Reviewing the 2022 Rails Community Survey - Part 2
Hear two rubyists finish our discussion on the results from the 2022 Ruby on Rails Community Survey:
Ruby-on-Rails and AlpineJS tutorial
AlpineJS is a very promising JavaScript tool for already-rendered HTML. It sounds an awfully good fit for Ruby-on-Rails. Let’s dive in. [more inside]
Why End-to-End (E2E) Testing is Often Good Enough
E2E testing can be as effective as other types of testing to ensure the performance & reliability of the system for end-users. [more inside]
Glimmer DSL for SWT Video Tutorial 19 - Hello, Cursor!
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]
Method chaining in Ruby
I wrote a little piece on method chaining in Ruby:
Add Feature Flags in Ruby on Rails with Flipper
Find out how feature flags function in principle and get started with feature flags using the Flipper gem. [more inside]
📚 What books on Ruby should I read to level up my skills?
Want to avoid going through an endless list of books to read when leveling up your Ruby skills? It’s time to add new tools to your self-learning technical practice toolkit. In this post, I’m going to share a few tools for your self-learning technical practice toolkit and get the most out of your continuous technical practice.
What Would It Take for Roda to Win?
Roda’s stated goals are simplicity, reliability, extensibility, and performance. Those are the very reasons why I have become such a Roda stan. It’s so malleable, you can take it in any number of directions in terms of architecture—particularly on the view side which is where my primary interest lies.
[Podcast] Code and the Coding Coder who Code it - Episode 7 - Chris Oliver
Chris Oliver joins the show to discuss all the adventures he’s been having. He tells us about the various projects he has going on, including: rewriting Hatchbox, hiring his first employee, and what the future of learning Rails could look like. He also is building a house which definitely takes some time to put together! There was so much to talk about this episode that it’s certainly getting the 1st place spot for longest episode! [more inside]
Rails 7.1 adds authenticate_by when using has_secure_password
Rails 7.1 has tried to address one of the seemingly unapparent security vulnerability called timing based enumeration attack by introducing a method authenticate_by when using has_secure_password.
This blog demonstrates the same.
[Podcast] Code and the Coding Coders Who Code it
A New(ish) podcast. We talk about Ruby, Rails, JavaScript, and everything in between. From tiny tips to bigger challenges we take on 3 questions a show; What are you working on? What’s blocking you? What’s something cool you want to share? Check it out at or wherever you listen to your favorite podcasts.
Exploring dry-rb - Intuition of Result
dry-rb is a fascinating set of tools and libraries, but their usage may not be readily apparent. Why might one add these libraries when there are perhaps much simpler techniques that will suffice? This series explores that question. [more inside]