Latest Ruby news from the world

18 October 2022

Rails no longer produces false-positive query cache hits when querying with mutable bound parameters

ActiveRecord now dups and freezes complex types when making query attributes which prevents false-positive query cache hits.
Ruby News
Oct2022
17 October 2022

Rails now allows EML files to be downloaded from the email preview

An option to download .eml files directly from the browser when using the email preview feature will now be available in Rails 7.0.
Ruby News
Oct2022
17 October 2022

Service layer for business logic — Organizing code in a Rails monolith

In this post, the author tells how his engineering team builds the Aha! suite using a Rails monolith.
Ruby News
Oct2022
17 October 2022

Setup TailwindCSS and esbuild on Rails 7

In this post, the author explains setup TailwindCSS and esbuild on Rails 7.
Ruby News
Oct2022
17 October 2022

ViewComponent in the Wild I: building modern Rails frontends

This post will focus on the higher-level aspects of applying the component approach when building view layers inside modern Rails applications. You’ll learn why this approach is a great alternative to building single-page applications.
Ruby News
Oct2022
10 October 2022

Ruby Substring

Ruby is an elegant and dynamic language. This is a simple topic about how to extract a Substring from an existing String in Ruby.
Ruby News
Oct2022
7 October 2022

Associations: Rails Many-to-Many Relationships

In this article, the author shows Many-To-Many Associations in rails.
Ruby News
Oct2022
6 October 2022

Making *MaNy* threads on Ruby

In this presentation, the author shows the background and progress of MaNy project.
Ruby News
Oct2022
6 October 2022

New in Ruby 3.2 - Data.define

Victor Shepelev (Zverok) has just landed an extremely useful feature in Ruby, Data.define. What is it and what does it do? The author is going to take a look into.
Ruby News
Oct2022
5 October 2022

Ruby News September 2022 Digest

Ruby News September 2022 Digest
Ruby News
Oct2022
5 October 2022

Importing images in JS files with esbuild and Rails

In this article, the author explains how to import images in JS files with esbuild, Rails and propshaft.
Ruby News
Oct2022
4 October 2022

Simplify your model code in Rails by avoiding association pollution

In this article, the author shows how you can keep your Rails app god object-free and a delight to work with by avoiding bidirectional relationships.
Ruby News
Oct2022
3 October 2022

Ruby-on-Rails authentication tutorial with Devise

Ruby-on-Rails has no built-in authentication mechanism. So let's pick the well-known gem Devise in this tutorial.
Ruby News
Oct2022
29 September 2022

Import Maps in Rails 7

Import maps is the new feature in Rails 7 that allows us to forego Node.js and tools like Webpack, plus it prevents the need for bundling. On the podcast, speakers share their insights about import maps in Rails 7..
Ruby News
Sep2022
28 September 2022

Operator Precedence Riddles in Ruby

In this article, we will discuss the role played by operator precendence.
Ruby News
Sep2022
27 September 2022

How to Install Bootstrap in Rails 7

This article explains how to install Bootstrap in Ruby on Rails 7 and save some time building your apps.
Ruby News
Sep2022
27 September 2022

How to enable Rails CSRF Protection?

Let’s find out what cross-site request forgery (CSRF) is, how it works in Rails, and understand how we can prevent CSRF vulnerabilities.
Ruby News
Sep2022
27 September 2022

Manage Rails app secrets with Rails Encrypted Credentials

In this article, we will understand the encrypted credentials approach introduced in Rails 5.2 and dive into its most recent upgrade to the multi-environment setup in Rails 6.
Ruby News
Sep2022
26 September 2022

How to Build Rails API Authentication using JWT?

This guide learns how to build Rails API authentication using JWT
Ruby News
Sep2022
26 September 2022

Text generation with GPT-2 in Ruby

In this article, an author would like to run the ONNX runtime and try out the GPT-2 model that generates English sentences from the Ruby language.
Ruby News
Sep2022
22 September 2022

How to Install (Or Get Rid Of) therubyracer on M1 or M2 Macs

This tutorial will explain how to Install (Or Get Rid Of) therubyracer on M1 or M2 Macs.
Ruby News
Sep2022
21 September 2022

Rails 7.1 - Optimizes Active Record batching for whole table iterations

In Rails 7.1 the implementation of in_batches method has improved to give optimized results for whole table iterations. In this article, we will see how it has improved.
Ruby News
Sep2022
20 September 2022

Ruby on Rails — Best Practices Every Developer Should Know

This article explains the best practices that one should follow while developing applications using Ruby on Rails with real-world examples.
Ruby News
Sep2022
20 September 2022

Seeking Ruby Array Methods

In this article, you'll find a quick introduction to a few of the most used array methods in Ruby.
Ruby News
Sep2022