Tutorials
Hotwire in Rails 6.1 - A First Look At CRUD With A Hands-On Todo List
Hotwire is brand new in Ruby on Rails 6.1, and today we're going to be taking a look at it. I like to learn things as hands-on as possible, so for my first look, I decided to create a CRUD application. This naturally meant making a todo list!We st...
A Quick Tutorial to Implement Active Model Serializers
Serializer gem allows us to format our JSON easily. It will enable us to select only the data we want and access our relationships with a single request. Active Model Serializers provides a way of creating custom JSON in an object-oriented manner....
Common issues with CSV parsing with Ruby and solutions to them
Problem: you are parsing a large CSV file, and it takes a lot of time to process the whole file, or your server is running out of memory when the process is in the middle.Solution: when processing CSV files with Ruby, always use the CSV.foreach me...
The 6 Characters That Could Bring Down Your Rails App
It all started with a ping from one of the team leads who noticed a recurring exception in Sentry. At the same time, DataDog showed the Postgres CPU utilization was spiking.Based on the Sentry logs, the team lead thought this exception was caused ...