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.
Last Friday
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]
Vite-lizing Rails: get live reload and hot replacement with Vite Ruby
Recently, AnyCable author Vladimir Dementyev upgraded his AnyCable demo application to Ruby 3 and Rails 7 with its new asset management tooling. As a result, assets:precompile
became fast as lightning, but we lost one important productivity feature along the way: live reloading.
Now, with this Vite Ruby setup, we’ve got Rails with live reloading and hot replacement ready to go!
Vite-lizing Rails:
get live reload and hot replacement with Vite Ruby
Woody Zuill on How Mob Programming Makes the Difference
An insightful interview about the benefits of mob programming: https://semaphoreci.com/blog/woody-zuill-mob-programming?utm_medium=social&utm_source=smgroups&utm_campaign=woodyzuill
store_model 1.0.0
store_model is a gem for wrapping JSONB values to ActiveRecord–like models. [more inside]
New Whatsapp SDK gem!
Whatsapp just announced its Cloud API with Whatsapp messaging. I built a Ruby gem and decided to make it open source. https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk
Rubocop - 4 ways to get rid of your frustration!
In this episode, I’ll show you how to ONLY LOVE Rubocop and never get frustrated by it. [more inside]
Fun with Rails Query Tracing
Ever needed to find the calling code source of some DB queries? Perhaps that one update to a deprecated column… Some tips on tracking active record queries with a few simple options.
How I made $15k so far helping people fix Ruby issues on Mac
In February, I launched Ruby on Mac to help people get a working Ruby development environment on their Mac. It’s been going great so far. I’m now starting to publish my monthly income reports and retros in the spirit of building in public. Here’s the one for May, which was my first $5k Month as a Solopreneur.
Full-text Search with Elasticsearch in Rails
If you’re finding performance bottlenecks with full-text search in your database, it may be time to switch to Elasticsearch. In this tutorial, Ianis introduces Elasticsearch and shows us how to implement an efficient search feature in Rails. https://www.honeybadger.io/blog/rails-elasticsearch/
New Glimmer DSL for LibUI Apps: RubyCrumbler and Rubio-Radio
Every once in a while, I get approached by people who ask a lot of questions about my Glimmer Ruby gems, but never complete any work in them, which is quite surprising given the fact that it takes less than a minute to run a Glimmer sample, less than 10 minutes to write one, less than an hour to build a small desktop app, and less than a day to build an app MVP (Minimum Viable Product). That is why I am very happy to learn that a couple of apps have been recently built with Glimmer DSL for LibUI by open-source developers who fully walked the walk, not just talked the talk. [more inside]
PKCE 0.0.0 - An OAuth companion gem
In the off chance you are working with OAuth and need a gem which implements the Proof Key for Code Exchange (PKCE) specification, then my new PKCE gem might be of interest. It’s a simple gem with a simple API for obtaining the verify and challenge codes you’ll need. Enjoy!
Rubber Duck Dev Show Episode 47 | Ruby 3 Keyword Arguments
Hear two rubyists discuss the keyword argument changes in Ruby 3: https://www.rubberduckdevshow.com/episodes/47-ruby-3-keyword-arguments/
Glimmer DSL for SWT Video Tutorial 21 - Hello, 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]
Ruby-on-Rails ViewComponents
A short tutorial, from scratch, for ViewComponents. [more inside]
Speeding up views rendering in Rails 4
It is well known that rendering views and partials in Rails is somewhat slow compared to other frameworks. In one particular part of the Rails migration for a large corporate client of ours, I had to migrate an endpoint rendering ~ 200 views. Using the standard render approach, the request took ~ 23s. Now, it’s down to ~ 300ms. [more inside]
How to Effortlessly Build an Instagram Clone With Hotwire
In this video, we’re going to look at how you can build an Instagram clone with Hotwire. https://youtu.be/VtzTTy65EMY