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.
9 November 2022
Announcing Hanami v2.0.0.rc1
First Release Candidate! Preparing for the stable release, and sharing a preview of updated guides.
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.
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.
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.
8 November 2022
Writing Neovim plugins with Ruby
In this article, the author explains how to write Neovim plugins with Ruby.
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.
2 November 2022
Ruby News October 2022 Digest
Ruby News October 2022 Digest
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.
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.
31 October 2022
An Intro to dry-schema in Ruby
This article introduces the dry-schema gem—a faster alternative to the defaults.
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.
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.
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.
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.
24 October 2022
Organizing Rails files by meaning
In this article, the author explains how organize files in Rails in general.
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.
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.
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.
20 October 2022
Rails system tests for multiple screen sizes
This post explains how to write a set of system tests for mobile screens.
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.
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.
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.
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.