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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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