Tutorials

How to reduce memory usage in Ruby – AbstractBrain Answers
The problem is related to Ruby threads and how memory allocation works at low-level. In many cases it’s not a memory leak, but just a memory bloat.Here’s two effective solution that we have used in production to reduce the memory usage:Reduce the ...

Using Watir to automate web browsers with Ruby | ScrapingBee
For years, it’s been possible to automate simple tasks on a computer when those tasks have been executed using the command line. This is known as scripting. A bigger challenge, however, is to control the browser since a GUI introduces a lot more v...
![[JA][Keynote]Ruby meets WebAssembly / Yuta Saito @kateinoigakukun - YouTube](/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTEwNjUsInB1ciI6ImJsb2JfaWQifX0=--a1884c033784298e9c5fe47c3ee27f009ed09d8d/open-uri20221106-4810-6t8fnp.avif)
![[JA]Tools for Providing rich user experience in debugger / Naoto Ono @ono-max - YouTube](/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTE0NjYsInB1ciI6ImJsb2JfaWQifX0=--89e999998dd809abb618ac8071e9c5b0d75b6d3e/open-uri20221106-4810-61ybiz.avif)

Dependent drop-down selects with Rails and Hotwire
This article will teach you how to create drop-down selects with Rails and Hotwire. I want to add country and state to the user. When users select a country, we want to fetch all states from this country and add to the states input-select. Let's s...

Using Svelte with optional TypeScript support in Rails 7 with Vite
In this tutorial we will take a look at how to integrate Svelte with optional TypeScript support in a Rails 7 project, with help of the Vite JS bundler.This tutorial is for a fresh created Rails 7 project, or an existing Rails app with vite-rails ...


Building Passwordless Email Auth in Rails: Magic links are less magical than you might think
I’m working on a new Rails app, and I finally got to the part where I need to figure out how I’m going to handle authentication.What’ll it be this time? I could:Depend on Devise, which is popular and feature-rich, but is so complex that—if I’m bei...

How To Create A Ruby On Rails API With Scaffold - Full 10 Step Guide In 5 Minutes
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 (Model View Controller) framework works!.