Latest Ruby news from the world

20 June 2023

Intro to Propshaft: a new asset pipeline for Rails

Explore the future of asset pipelines in Rails with Propshaft! Discover how this cutting-edge technology enhances the management and delivery of assets while simplifying your development workflow.
Ruby News
Jun2023
19 June 2023

Deploying a Rails app with MRSK

In this tutorial, I will show you how to deploy a Rails app to a VPS, run Caddy in front of the docker container to handle SSL, use a hosted database server, run Redis on the same droplet, run a worker to process background jobs.
Ruby News
Jun2023
19 June 2023

Use call_helper to set rails config.load_defaults

Synvert provides the ability to write code snippets that can automatically rewrite your source code. This video demonstrates how to use call_helper to set rails config.load_defaults
Ruby News
Jun2023
16 June 2023

Insights from the Stack Overflow Developer Survey 2023: Ruby Still Stands

This blog post will highlight some of the key findings from the Stack Overflow Developer survey, with a particular focus on the popularity and growth of the Ruby programming language as well as its consistently high average salary..
Ruby News
Jun2023
16 June 2023

Setting Up Business Logic with DCI in Rails

In this post, we will introduce alternative to organizing business logic in Ruby on Rails that more naturally fits the mental models we apply when reasoning about the behavior of our applications: DCI.
Ruby News
Jun2023
15 June 2023

Responsive Design in Rails - Creating Adaptive User Interfaces

In this blog post, we’ll explore the principles and techniques of responsive design in the context of Rails applications.
Ruby News
Jun2023
14 June 2023

Unofficial guide for upgrading Hanami 1.x -> Hanami 2.x

This is an unofficial, community-maintained guide to help upgrading projects that are built on Hanami 1.x to Hanami 2.x.
Ruby News
Jun2023
11 June 2023

How does environment check work in Ruby on Rails?

In this article, we're going to explore the Rails.env object and the respond_to_missing.
Ruby News
Jun2023
7 June 2023

Ruby News May 2023 Digest

Ruby News May 2023 Digest
Ruby News
Jun2023
6 June 2023

Authentication using Devise in Rails 7

In this article, we will explore how to implement authentication in a Rails 7 application using the popular devise gem.
Ruby News
Jun2023
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

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