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.
Announcing Hanami 2.2.0.beta1
We’re close to completing the full stack Hanami 2 vision. Introducing our database layer and operations. [more inside]
A new interactive mode for Bundler
Announcing bundle_update_interactive, a new gem that adds a nifty update-interactive command to Bundler, inspired by yarn upgrade-interactive. Browse the gems in your project that need updating, identify the ones affected by security vulnerabilities, and see risks at a glance with semver color highlighting. Having second thoughts about an upgrade? A changelog link is displayed for each gem so you can dive into the details. More docs and screenshots in the README: https://github.com/mattbrictson/bundle_update_interactive
Access Request Headers in a Rails Controller
How do you access request AND response headers in a rails controller? What does the headers method refer to? Let’s dive into the Rails source code to investigate a failing rspec request spec. [more inside]
Exercise: Minesweeper in 100 lines of clean Ruby
I like how in Ruby you can often use less lines of code and at the same time increase readability. So as an exercise, and for fun, I did that with Minesweeper: Exercise: Minesweeper in 100 lines of clean Ruby
Mastering Authorization in Rails with Pundit Gem
Mastering Authorization in Rails with Pundit Gem
Custom color schemes with Ruby on Rails
This blog post lets you edit your preferred color scheme of the whole site. The article not only talks about the some of the benefits of Rails, Hotwire, and CSS variables but shows you as well with a “colorful” live demo. [more inside]
Prefer endless method by Synvert
It demonstrates how to use synvert to convert traditional method to endless method.
Rails 7.2 Adds app:update Task to be a Rails Command.
Puma-dev and using it with Rails applications. [more inside]
Building a RESTful API Using Grape
Building a RESTful API Using Grape
New gem for tracing Active Record queries
Presenting a new gem for tracing Active Record, I wish existed earlier - [more inside]
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.
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.
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
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
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: