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.
Todo MVC Ruby Edition is the one Todo MVC To Rule Them All!!!
Todo MVC is a popular sample that is built in all Web Frontend Frameworks to provide a comprehensive example covering all basic Frontend features. As such, it provides Software Engineers with a very good idea of how day-to-day Frontend Development would be with every Frontend Framework, whether in JavaScript, using React, Angular, Ember, or Vue, or in a Compile-to-JavaScript language, using something like Elm, GWT, or Scala.js. I am happy to announce that Todo MVC has just been built using Glimmer DSL for Web with 100% Frontend Ruby code. And, this version’s code is easily simpler, more minimalistic, more readable, and more maintainable than all 45+ versions on the Todo MVC website! I can confidently say it is the one Todo MVC to rule them all! Thanks to the awesomeness of Ruby in the Browser!!!
Curated dashboards in Honeybadger
Here’s what we worked on during our last product cycle at Honeybadger: a curated Rails performance dashboard with automatic Ruby instrumentation! ✨
Creating indexes on big tables like a boss
Struggling with adding an index to a large table in your Rails app without clogging deployment pipeline? [more inside]
Synvert now supports the Prism parser
Synvert provides the ability to write code snippets that can automatically rewrite your source code. Here’s a post to demonstrate that synvert supports the prism parser now.
Understanding Kamal healthchecks
Here’s a post on all the healthcheck settings you might want to understand in Kamal.
The art of Turbo Mount: Hotwire meets modern JS frameworks
The art of Turbo Mount: Hotwire meets modern JS frameworks [more inside]
ActiveStorage::Blob#compose Now Supports Custom Blob Key in Rails 7.2.
ActiveStorage::Blob#compose Now Supports Custom Blob Key in Rails 7.2. [more inside]
Monitor the Performance of Your Ruby on Rails Application Using AppSignal
In the second part of this two-part series, we’ll use AppSignal to monitor the performance of our Ruby on Rails application:
Memory management in Ruby 💎
Ruby, is hiding you the complexities of this task
ActiveStorage::Blob#compose Now Supports Custom Blob Key in Rails 7.2.
Rails 7.2 allows to add custom blob key in the ActiveStorage::Blob APIs [more inside]
Implementing dark mode with Stimulus
Here’s a simple dark mode with Tailwind and Stimulus.
Astronoby v0.5.0 released
With new features related to the Moon 🌙 Location in the sky, moonset and moonrise times, distance, phases, illuminates fraction, …
How to refresh the full page when submitting a form inside a Turbo Frame?
I find it kind of strange that this doesn’t work out of the box, but there a few ways to do it, all not too complex: How to refresh the full page when submitting a form inside a Turbo Frame?
Ruby endless method - a quick intor
Continuing my series of writing about Ruby endless method in an article where I show some code samples of both one-liners and multi-line endless methods
How to Use Tailwind CSS for Your Ruby On Rails Project
Let’s see how we can use Tailwind CSS in a Rails application and explore its utility-first approach:
Ruby Warsaw Community Conference - New info!
Another speaker and workshops on Ruby Warsaw Community Conference announced! 🎫 📣 [more inside]
How to build a Rails API with rate limiting
How secure is your Rails API? Learn how to build an API with Ruby on Rails and use rack-attack to keep the bad actors out. A new article from Jeffery Morhous.
Blue Ridge Ruby is exactly what we need
“This year’s Blue Ridge Ruby conference in Asheville, North Carolina, was not only a wonderful experience but also highlighted the opportunity (and what’s at stake) in the Ruby community.”
Rails 7: Default Dockerfile for Alpine Linux
I wrote a quick tutorial on modifying the default Rails 7 Dockerfile to use Alpine Linux. Alpine is a lightweight distribution that can result in much smaller Docker images for your apps. [more inside]
Hotwire Combobox
In this episode, we tackle the issue of slow-loading dropdowns with a high volume of options by implementing an asynchronous select using the Hotwire Combobox library. https://www.driftingruby.com/episodes/hotwire-combobox
Rails Generator Cheat Sheets
I created some free Rails generators cheat sheets to help create custom Rails generators. They consolidate the available actions, inflections, and other values available when creating Rails generators.
Automating PostgreSQL backups to Digital Ocean Spaces with Kamal
Here’s a short tutorial on automating PostgreSQL backups with Kamal. As a fan of Digital Ocean, I am using S3-compatible DO Spaces to store the backups.
Interactive Modals in Rails
There is a lot of talk about modals in Rails, and this tutorial shows you how with some Stimulus sprinkles, you can have very interactive modals. https://youtu.be/VKJ_1qoPTsE Link to code: https://onrails.blog/2024/06/01/interactive-modals/