Latest Ruby news from the world

10 November 2022

Rails now validates options used in migration functions

Previously erroneous options were silently ignored in migration functions such as create_table or add_column, now they raise an error.
Ruby News
Nov2022
9 November 2022

Announcing Hanami v2.0.0.rc1

First Release Candidate! Preparing for the stable release, and sharing a preview of updated guides.
Ruby News
Nov2022
9 November 2022

Rails 7.1 allows ActiveRecord::QueryMethods#select & #reselect to receive hash values

An ActiveRecord query by default uses the SELECT * operator to select all the fields from the result set. The ActiveRecord::QueryMethods#select method allows you to select a subset of fields from the result set.
Ruby News
Nov2022
9 November 2022

Rails Quick Tip - Use Private Debugging Aliases

In this blog post, the author will describe a simple way to add debugging shortcuts to the project without modifying the codebase shared with other team members.
Ruby News
Nov2022
9 November 2022

Ruby multiline String

We will explore multiple scenarios where the display of a simple String in Ruby on multiple lines could be useful.
Ruby News
Nov2022
8 November 2022

Writing Neovim plugins with Ruby

In this article, the author explains how to write Neovim plugins with Ruby.
Ruby News
Nov2022
3 November 2022

Rails adds source attribute to its ErrorReporting API

Subscribers can now filter error reports based on source, making it easier to ignore internal errors or focus on specific errors.
Ruby News
Nov2022
2 November 2022

Ruby News October 2022 Digest

Ruby News October 2022 Digest
Ruby News
Nov2022
1 November 2022

Dependent drop-down selects with Rails and Hotwire

This article will teach you how to create drop-down selects with Rails and Hotwire.
Ruby News
Nov2022
1 November 2022

Rails pundit tutorial

Authorization is an important part of any SaaS. Let's see what it means, and how to implement it with the pundit gem for Rails.
Ruby News
Nov2022
31 October 2022

An Intro to dry-schema in Ruby

This article introduces the dry-schema gem—a faster alternative to the defaults.
Ruby News
Oct2022
28 October 2022

Securing Rails applications with Content Security Policy

In this post, the author will focus on Content Security Policy - a handy mechanism that can protect our app from XSS attacks. It’s not Rails-specific, it can (or even should) be implemented in every web application but Rails provides great helpers to make implementation even easier.
Ruby News
Oct2022
27 October 2022

Build a Table Editor with Trix and Turbo Frames in Rails

In this post, we will implement a basic ActionText table editor for your Rails application.
Ruby News
Oct2022
25 October 2022

Ruby ternary operator

Many languages have a ternary operator, including Ruby. The goal is to reduce the size of the code by displaying a one-line condition.
Ruby News
Oct2022
24 October 2022

Improve Code in Your Ruby Application with RubyCritic

This article will touch on some of RubyCritic's benefits, its dependencies, and how to read its code reports.
Ruby News
Oct2022
24 October 2022

Organizing Rails files by meaning

In this article, the author explains how organize files in Rails in general.
Ruby News
Oct2022
21 October 2022

ViewComponent in the Wild II: supercharging your components

In this post, we’ll discuss some best practices and examine various tips and tricks and you’ll learn how to bend view components to your will.
Ruby News
Oct2022
20 October 2022

How to Create a Ruby On Rails API with Scaffold

This guide is multi-use, designed for passing a code challenge but could be useful for jumping into a new codebase, or refreshing your knowledge of ruby on rails, or getting a brief overview of how an MVC framework works.
Ruby News
Oct2022
20 October 2022

Rails now supports infinite range options in LengthValidators

Models that need to be validated for length can use infinite ranges in :in / :within options.
Ruby News
Oct2022
20 October 2022

Rails system tests for multiple screen sizes

This post explains how to write a set of system tests for mobile screens.
Ruby News
Oct2022
19 October 2022

How to Build Your Own Rails Generator

This article explores Rails generators in depth, including how to build a generator from scratch.
Ruby News
Oct2022
19 October 2022

Ruby-on-Rails and SvelteJS tutorial

SvelteJS is a very promising JavaScript tool that gained traction recently. For those who don't like Hotwire for Ruby-on-Rails, it sounds a good alternative.
Ruby News
Oct2022
19 October 2022

Pagination in Hanami apps with ROM

In this post, The author will show you how to quickly implement pagination from scratch for your Hanami projects.
Ruby News
Oct2022
18 October 2022

The In-depth Guide to Caching ActiveRecord SQL Queries in Rails

In this blog post, the author discusses the common pitfalls of caching SQL queries in Rails apps.
Ruby News
Oct2022