Latest Ruby news from the world

26 April 2023

Hacking Rails Implicit Rendering for View Components & Fun

Understanding how Rails handles requests from routes.rb to calling the action method on a controller makes it possible to build Rails plugins ranging from Hanami-like action classes to component-driven Rails development.
Ruby News
Apr2023
26 April 2023

Ruby's Switch Statement is More Flexible Than You Thought

Ruby's switch statement is very versatile and flexible, especially due to the dynamic nature of Ruby. In this post, we'll see how you can use it in various ways. We'll also learn why it works the way it works.
Ruby News
Apr2023
26 April 2023

Write a Ruby C Extension to Use CLIPS from Ruby: Part 1

In this article, we're going to look at how to write a Ruby C extension that lets the user interact with CLIPS, a programming language used to create Rules Engines and Expert Systems.
Ruby News
Apr2023
25 April 2023

Working with PDFs in Ruby

Working with invoices, contracts, or just reading your favorite mystery thriller—whatever the case, PDF files are everywhere. Learn how to work with PDFs in Ruby.
Ruby News
Apr2023
23 April 2023

Create a Ruby gem from scratch

In this article, we'll show you how to create a gem that provides comments for any model in a Rails project.
Ruby News
Apr2023
23 April 2023

How to use Sidekiq in Rails 7: Background Jobs

In this blog, we'll explore how to use background jobs with Sidekiq in Rails 7 to handle long-running tasks.
Ruby News
Apr2023
21 April 2023

SOLID: Open-closed principle in Ruby

In this article, we will explore the Open/Closed Principle and demonstrate its application in Ruby.
Ruby News
Apr2023
19 April 2023

Adding table names to error for duplicate column names

Table name is shown in the error when duplicate columns for the same table is entered while creating it.
Ruby News
Apr2023
19 April 2023

How to Load Code in Ruby

In this post, we will explore three different options for loading code: using load, require, and autoload. We will also look into the Ruby gem Zeitwerk.
Ruby News
Apr2023
18 April 2023

Mastering Time Complexity in Ruby: a Comprehensive Guide with Code Examples and Tests

In this article, we will explore time complexity and its relationship to the Ruby programming language.
Ruby News
Apr2023
18 April 2023

Elegant Memoization with Ruby’s .tap Method

There are a few different ways to memoize complicated chunks of code in Ruby. Here's why .tap is my personal favorite.
Ruby News
Apr2023
17 April 2023

How to Access Hash Values with Methods Using OrderedOptions

This post shows how to access Hash Values with methods using OrderedOptions
Ruby News
Apr2023
17 April 2023

Delaying Kafka Messages Processing with Karafka: a Deep Dive into Delayed Topics

In this article, we will take a deep dive into the Karafka's Delayed Topics feature and explore how it can be used to delay message processing in the Kafka-based applications.
Ruby News
Apr2023
17 April 2023

Kaminari Gem

Kaminari is a pagination gem for Ruby on Rails that provides a simple and flexible way to paginate records in your application. With Kaminari, you can easily add pagination to your views and controllers, and customize the pagination options to fit your specific needs.
Ruby News
Apr2023
14 April 2023

Why i Stopped Using Sorbet in All My Ruby Projects

In this article, the author explains why he decided to stop using Sorbet in all his projects.
Ruby News
Apr2023
13 April 2023

Audit Logging in Ruby and Rails

In this post, we'll first dive into what auditing entails and what to consider when audit logging. We'll then explore some options for implementing audit logs, including PaperTrail, Audited, AuditLog, AppSignal, and a custom implementation.
Ruby News
Apr2023
12 April 2023

How to use Flipper for feature flags in Rails

Feature flags are used all across the tech industry to test code at scale. This article explores how to integrate them into your Ruby on Rails application using the Flipper gem.
Ruby News
Apr2023
11 April 2023

How to implement Pub/Sub pattern in Ruby on Rails?

In this article we'll provide a comprehensive guide to understanding and implementing the Pub/Sub pattern.
Ruby News
Apr2023
11 April 2023

Dealing with common and uncommon problems with parsing CSV with Ruby

This article is a first-aid kit that you can use when you will spot any problems with parsing CSV.
Ruby News
Apr2023
10 April 2023

The Definitive Guide to Rack for Rails Developers

This article explains pretty much everything you need to know about Rack as a Rails developer.
Ruby News
Apr2023
10 April 2023

Best Ruby HTTP Clients for 2023

In this article, we’ll take a look at some of the best Ruby HTTP clients available and compare their features, performance, and ease of use.
Ruby News
Apr2023
7 April 2023

Feature flags in Rails: How to roll out and manage your features like a pro

In this blog post, we will look at how to use the Flipper gem to implement a basic feature flagging system in a Rails application.
Ruby News
Apr2023
6 April 2023

Migration Magic ✨, Handling Not-Null Constraints in Production with Ruby on Rails

Discover How to Handle Migrations in Production with Confidence.
Ruby News
Apr2023
6 April 2023

PostgreSQL + JSONB + Ruby

In this article, we will discuss how JSONB works in Postgres and how it can be used in conjunction with Rails.
Ruby News
Apr2023