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.
Tracking Writebook Changes
In this episode, we look at setting up a mechanism to track the changes from an externally developed product. We’ll also discuss branching strategies and how to develop your own features on top of Writebook. https://www.driftingruby.com/episodes/tracking-writebook-changes
GoodJob v4
Since the previous major version, GoodJob v3.0 (June 2022), there have been 110 minor/patch releases from 88 contributors with many new features and improvements including: batches, bulk enqueuing, labelled jobs, job throttling, dark mode for the web dashboard, storage of error backtraces and contexts, ordered queues, the ability to pause repeating/cron-like jobs, systemd integration, healthchecks, and much more. https://island94.org/2024/07/introducing-goodjob-v4
Milestoner 18.0.0: A fully customizable release note builder
With this release, support for syndicated feeds has been added along with a bunch of enhancements for all build formats (i.e. ASCII Doc, Markdown, Web, and console). A complete overhaul of configuration has been provided as well. Enjoy!
Small Ruby on Rails snippets I find helpful at the start of a project
https://www.jomppanen.com/2024/07/07/ruby-on-rails-snippets-at-start-or-project.html I wrote a small blog post for myself so I don’t have to search these snippets from internet every time I’m starting a new project.
Some Elegance with Rails Caching
https://danielabaron.me/blog/rails-cache-elegance/ Explore the elegance of Rails caching using the ‘fetch’ method to optimize performance and easily handle slow operations.
Rabarber v3: Multi-Tenancy Update
We are happy to announce the release of version 3 of Rabarber, a role-based authorization gem for Ruby on Rails. This version introduces a significant new feature: context-based role authorization, suitable for multi-tenancy and more granular access control. [more inside]
Etcher 2.0.0: An advanced configuration loader
If you need robust configuration loading, validation, and modeling (with optional transformations), then Etcher 2.0.0 might the firepower you need. This release smooths out some of the rough edges in the 1.x.x series while giving more power to overrides (should you need them). Additional transformers and loaders are provided to make life a bit easier too. [more inside]
sqids-rails v0.1.1 released
sqids-rails is a new gem that provides Sqids (formerly Hashids) integration for Ruby on Rails. [more inside]
Ruby Fusion: Milestones
The next Ruby Fusion gathering is fast approaching. If interested in release note generation, strict semantic versioning, and deployment using the Milestoner gem, please register to attend on July 11th at 6:30pm MDT. There’s a lot this gem can do for you!
How to rename a flipper feature flag
Without disruption to customers, audit history or gate values. [more inside]
Debugging in Ruby with Debug
We’ll introduce the basics of the debug gem before diving into its more advanced features: https://blog.appsignal.com/2024/07/03/debugging-in-ruby-with-debug.html
Parsing CSV files in Ruby
Working with CSV files is something every programmer has to do eventually. Fortunately, Ruby’s built-in CSV library puts plenty of tools at our disposal. Read the full article.
Add extra documentation to your tables columns with built-in comments
Hey folks, I just wrote a quick TIL on how to add extra documentation to your models attributes. [more inside]
Kamal Handbook got updated for Kamal 1.7.3
Kamal Handbook got updated for Kamal 1.7.3. One of the bigger changes is the removal of a healthcheck container.
Inertia.js in Rails: a new era of effortless integration
We want to make Inertia.js more popular within the Rails so we started a project to provide both Rails-specific community docs and a set of tools for effortlessly integrating Inertia into Rails apps. Read the post
Unnoticed Elephant
When the Rails application grows, you will start facing many weird problems. I will share with you some real production incidents that I have learned from the past. This article is about storing data, growing from ant to elephant
API versioning in Ruby on Rails
Got a Rails API that needs some love? Learn how to version your API endpoints so that you can introduce new features while maintaining backward compatibility. Read the article
New release of ActualDbSchema gem (v0.7.5) - manual rollback
🚀 We’ve just released v0.7.5 of our actual_db_schema gem, designed to supercharge your Rails development productivity. [more inside]
Announcing the Ronin 2.1.0 Open Beta
We are pleased to announce the Ronin 2.1.0 Open Beta! Ronin 2.1.0.rc1 has been released and we need people to test it. The Open Beta will last four weeks and will culminate with the release of Ronin 2.1.0 on July 22nd. If you can find a bug in Ronin 2.1.0.rc1, you might be eligible for a free laptop sticker!
Creating a REST API with Ruby on Rails. Cap 2
Here I show my way of creating REST APIs with Ruby on Rails. This might seem simple for those who already know, but it could be of great help to someone who is just starting out: https://a-chacon.com/en/rails/ruby/2024/06/23/creating-rails-api-cap-2.html
Glimmer DSL for LibUI 0.12.0 Custom Control Component Slots
Glimmer DSL for LibUI (Prerequisite-Free Ruby Desktop Development Cross-Platform Native GUI Library) version 0.12.0 ships with an exciting new feature called Custom Control Component Slots!!! Component Slots are containers that could accept content in different parts of a Custom Control component (e.g. an address_form Custom Control can have a header slot and a footer slot to display extra information about the address being entered, which consumers could fill in with any GUI controls). A new example has been implemented to demonstrate this feature: Class-Based Custom Control Slots. https://andymaleh.blogspot.com/2024/06/glimmer-dsl-for-libui-0120-custom.html
Video Tutorial: How Do I Drag and Drop Items in a List?
I added two video tutorials which really help show how interactive Rails/HOTWire/Stimulus can be with a simple JavaScript controller. Client side: https://youtu.be/riBrFASNaHs Server side: https://youtu.be/NuWWk6iWgwg Original post: https://onrails.blog/2024/03/08/hotwire-tutorial-how-do-i-drag-and-drop-items-in-a-list/