Latest Ruby news from the world

2 June 2023

How to use and integrate PostgreSQL to Rails

Learn how to use PostgreSQL with your Ruby on Rails application, instead of the default SQLite database.
Ruby News
Jun2023
1 June 2023

How to Use Sinatra to Build a Ruby Application

In this article, we'll introduce Ruby on Rails' lesser-known but powerful cousin Sinatra. We'll use the framework to build a cost-of-living calculator app.
Ruby News
Jun2023
1 June 2023

Generating Secure Tokens on Your ActiveRecord Models

Rails provides a has_secure_token macro to generate unique tokens on your models. In this article, we'll learn how it works and we'll also see how Rails implements it behind the scenes.
Ruby News
Jun2023
31 May 2023

Inline SVGs with Rails and Vite

Here’s one way to add Vite support to the popular inline_svg gem, plus a way to implement your own helper and skip the gem dependency altogether.
Ruby News
May2023
30 May 2023

10 Useful Ruby One-Liners: Examples and Descriptions

In this blog post, we will explore 10 of the most useful Ruby one-liners, complete with examples and detailed descriptions of their functionality.
Ruby News
May2023
30 May 2023

Accelerate Domain Learning: Explore Application Dependencies with RailsGraph

In this post, the author will share the motivation behind building RailsGraph and his experience utilising the gem to overcome challenges and enable his team to successfully deliver with confidence on a complex data migration project.
Ruby News
May2023
30 May 2023

Extract Sample Rate of an Audio File with Audio Analyzer in Rails 7.1

Extract the sample rate of an audio file with ActiveStorage::AudioAnalyzer which will return the bit rate, duration, and sample rate.
Ruby News
May2023
30 May 2023

Introduction to Rails Engines

In this post, we will dive into the world of Rails Engines and explore what they are, how to create them, how to use them, when to use them, and why they are important.
Ruby News
May2023
30 May 2023

RSpec Testing in Ruby on Rails: the Basics

In this article, we’ll explore the basics of RSpec testing and how to use it to write effective test cases for your applications.
Ruby News
May2023
29 May 2023

Efficient JSON Serialization with Blueprinter for Ruby on Rails

In this article, we’ll explore the key features and benefits of using Blueprinter gem for JSON serialization in Rails.
Ruby News
May2023
25 May 2023

How to Render Markdown Views in Rails

This article shows how to create and render markdown views in Rails. This is useful if you have a few static marketing pages in your web application that you'd like to save and edit as markdown along with the rest of your code files.
Ruby News
May2023
24 May 2023

An introduction to the gateway pattern and when to use it in Rails

This post explains how you can use gateway classes to organize external API integrations and establish a clearer separation of concerns.
Ruby News
May2023
23 May 2023

A comprehensive guide to the anonymous functions

This article is a deep dive into blocks, procs, and lambdas that will help you to understand how these functions differ from each other and how you can benefit from using them.
Ruby News
May2023
22 May 2023

AI & Ruby: an introduction to neural networks

This article aims to demystify AI applications, delve into Machine Learning (ML) through the creation of a basic Artificial Neural Network (ANN) in Ruby, and shed light on the ever-present GPT phenomenon.
Ruby News
May2023
22 May 2023

How to Create Custom Flash Types in Rails

In this post, we'll learn how to use it and also how it's implemented behind the scenes. In the process, we'll also learn a few metaprogramming tricks in Ruby.
Ruby News
May2023
22 May 2023

Exploring Probabilistic Algorithms with Ruby

In this article, we will delve into the world of probabilistic algorithms using the Ruby programming language.
Ruby News
May2023
22 May 2023

Hotwire and Turbo in Rails 7

In this blog, the author will go through Hotwire and Turbo in Rails 7, and take a closer look at how they can be used to build fast, responsive web applications.
Ruby News
May2023
22 May 2023

Concerns in Rails: Everything You Need to Know

This post explains what concerns are, how they work, and how & when you should use them to simplify your code, with practical, real-world examples.
Ruby News
May2023
22 May 2023

Integrating Google OAuth2 with Devise for a Ruby on Rails Application

In this article, the author is going to walk you through a step-by-step guide on how to set up Google OAuth2 with Devise on a Rails application, also incorporating exception handling to make your app robust and reliable.
Ruby News
May2023
22 May 2023

How to Fix Rails 6.1 Relation merge Deprecation

In this article, we will talk about the expected behavior of merge, how it has changed and what to do in order to use the new behavior if you find yourself looking at this deprecation.
Ruby News
May2023
22 May 2023

Three Things to Avoid When Building Rails Controllers

Controllers in a Rails app offer a wealth of functionality and conveniences to help you complete this job. But amongst these conveniences there lie a number of prickly parts which can do more harm than good. In this post we will present three practices which are best avoided.
Ruby News
May2023
19 May 2023

Rails 7.1 adds support for responsive images

Rails 7.1 has added support for picture_tag. It is useful if we want to add responsive images to our rails app.
Ruby News
May2023
18 May 2023

DIY error monitoring for Ruby

This article will teach you how to monitor Ruby errors. Learn about Ruby's built-in errors, how to use log levels and tagging to customize the log output, display errors on the front-end, and more.
Ruby News
May2023
17 May 2023

Manage Your Ruby Logs Like a Pro

In this article, we'll explore: The importance of logging; How to use Ruby's inbuilt logging utilities — puts and Logger; Log levels and their differences; Customizing your logs using JSON; Integrating a logging library, using Lograge as an example
Ruby News
May2023