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.
Rails 7, Bootstrap 5 tutorial : fear and relief
Rails 7 is out, so it’s time for a tutorial, from zero to production. Essentially based on the new way to handle assets. We made it copy/paste, step by step, so that even beginners should understand what’s going on under the hood : https://www.bootrails.com/blog/rails-7-bootstrap-5-tutorial/
Screencasts: Refactoring a Rails controller action to a Trailblazer operation
Go check out our new screencasts series TRAILBLAZER TALES 🌅 We uploaded five episodes where a typical “messy” Rails controller action is refactored to a Trailblazer operation (~28 mins).
Cable-shared-worker (CableSW) - ActionCable and AnyCable Shared Worker support
Cable-shared-worker is running ActionCable or AnyCable client in a Shared Worker allows you to share a single websocket connection for multiple browser windows and tabs
PostgreSQL generated columns in Rails
Rails 7 added support for generated columns in postgres. I wrote a blog post to understand what generated columns are and how to use them.
Rubber Duck Dev Show Episode 22 | Code Quality Analyzers
Hear two rubyists discuss code quality analyzers like RubyCritic: https://www.rubberduckdevshow.com/episodes/22-code-quality-analyzers/
Rails : how to add a column
Sometimes it’s good to go back to basics. While creating the blog article, we discovered that we were not aware of the “rails db” command - a pretty nice shortcut to investigate the underlying database of your app. https://www.bootrails.com/blog/rails-add-column/
GraphQL vs REST API: A Quick Comparative Guide
Before you kick your REST API to the curb in favor of GraphQL there are a few things you should know: https://buttercms.com/blog/graphql-vs-rest-api.
Creating and testing gRPC server interceptors in Ruby
Recently I had to create gRPC interceptors in Ruby, but finding a good way to test them was harder than I initially thought. So, I decided to document my approach to testing, for both unit and integration tests. You can read the full article here.
4 tips on how to make more out of Sidekiq
In my recent blog post, I share a few insights that I have learned about over time that may make your Sidekiq setup more efficient.
Extralite - a new Ruby gem for working with SQLite databases
Extralite is a new Ruby gem for working with SQLite databases. In my latest article I discuss its design and compare it with the sqlite3-ruby gem.
Glimmer DSL for SWT 4.22.0.0
SWT 4.22 was just recently released, and you know what that means! It’s Glimmer DSL for SWT major upgrade time! Glimmer DSL for SWT 4.22.0.0 just got released to include SWT 4.22 among other big upgrades and changes. [more inside]
The Fastest Way To Load Data Into Postgres With Ruby on Rails
This article looks at 4 methods to load data into Postgres with Rails: 1) Inserting one record at a time 2) Bulk Inserts with Active Record Import 3) PostgreSQL Copy with Activerecord-copy 4) Using background jobs [more inside]
The Future of (Crypto) Punk's Not Dead - Tell Us What You Want To See in 2022!
Hello, A new year is upon us and I try my best to continue working (volunteering, really) on the pixel art programming - yes, in ruby - projects under the (Crypto) Punk’s Not Dead umbrella that incl. free pixel art, booklets, tools & scripts and much more. ++ Tell us what you want to see in 2022. Yes, you can.
How to Use Kredis in Rails
Kredis is a high level wrapper around Redis and makes life easy for anyone interacting with Redis. Watch the How to Use Kredis with Rails screencast where we build a recent searches feature that keeps track of recently submitted search queries.
puts_debuggerer is State of the Art Rails in 2021
There is a project on GitHub that lists/demonstrates state of the art Rails technologies in 2021. Interestingly enough, one of my gems, puts_debuggerer, made the list! [more inside]
What are the square brackets in my Rails migrations?
Let’s look at what these little square brackets are doing in our Rails migration files!
Minitest Heat
Minitest Heat is a Minitest reporter that helps you identify problems faster so you can more efficiently resolve test failures by generating a heat map that shows where failures are concentrated. You can see a preview of example test results on the wiki or install it and try it out on an existing project.
Rails 7 adds caching? and uncachable! helper
Starting with Rails 7, we can add caching? helper to check whether the current code path is being cached and uncacheable! helper to avoid fragment caching. [more inside]
Qeweney - a feature-rich HTTP request/response API for Ruby
Qeweney is a new abstract HTTP request/response API, developed primarily for Tipi a new high performance web server for Ruby. In my latest article I explore the design decisions behind Qeweney and how it can be used with Rack apps.
Hanami v2.0.0.alpha4
New API for Content Security Policy, Router helpers from actions, CLI enhancements. https://hanamirb.org/blog/2021/12/07/announcing-hanami-200alpha4/
Exploring dependency injection in Ruby
Classes depend on each other all the time. But the way you tie those classes together will determine how hard it is to change your code. Dependency injection can help you reduce that coupling and reduce your cost of change.