Connecting thoughts

Articles written by SINAPTIA about Ruby on Rails.

Tree structures in Rails

Tree structures are a common way of organizing hierarchical data. In this post, we’ll explore existing solutions for Ruby on Rails, their benefits, drawbacks, and when to use them.

Patricio Mac Adden
Dec 12th, 2024

Debugging a memory-leaking action

This week we had to refactor a feature in one of the Ruby on Rails apps we’re maintaining. While at it, we discovered it was leaking memory, making the memory usage ramp up exponentially. With our expertise and the help of some tools, we were able to identify the root cause and fix the issue. Read on to learn more about how we approached this problem.

Patricio Mac Adden
Sep 26th, 2024

Reimplementing a broken search engine

We’ve been working with a boat marketplace for a year now. One of the most interesting challenges we faced during this time was reimplementing their broken search engine. This is how we did it.

Enzo Díaz
Nov 30th, 2023

Why Ruby on Rails is still great for MVPs

Ruby on Rails remains a great framework for developing web applications. Thanks to its maturity and philosophy, one can build MVPs in a fast, efficient, and scalable way. Discover why Rails continues to be a great and influential framework to this day.

Patricio Mac Adden
Nov 15th, 2023

Long-awaited comparison validator comes to Rails 7

For years we had to manually compare values in our validations. Rails 7 added the comparison validator to ActiveModel. Read on and discover, as we just did, how it works.

Patricio Mac Adden
Nov 1st, 2023

Is Ruby on Rails secure?

This is one of the most frequently asked questions from people who want to build an MVP with Ruby on Rails.

Patricio Mac Adden
Oct 11th, 2023

Talking to hostile APIs

APIs allow us to communicate with third-party software in order to use their services and data. In today’s software, it’s almost impossible not needing to use one, one way or another. What if they are hostile?

Patricio Mac Adden
Sep 13th, 2023

Introducing Audited-UI

We’ve been using the audited gem for a couple of projects, but the lack of a built-in view to display the changes challenged us to write our engine. We are happy to introduce audited-ui.

Patricio Mac Adden
Aug 30th, 2023

Consequences of parrot-like APIs

Psittacism signifies repetitive speech in the manner of a parrot. Can APIs suffer from it and what are their consequences?

Nazareno Moresco
Aug 16th, 2023

Using strong_params beyond mass assignments

Strong Parameters are typically used in Ruby on Rails for mass assignments, but in this article, we explore an additional use for this feature.

Nazareno Moresco
Aug 3rd, 2023

Don't do this at home

Service objects is a Ruby on Rails pattern widely used. In this post, I’ll show you one example I stumbled upon recently. What’s wrong with it and how did we fix it?

Patricio Mac Adden
Jul 26th, 2023

Bringing a 10-year-old Ruby on Rails app back to life

Last week we published the case study of one of our first projects. After 10 years in the archive, I found and brought this old Ruby on Rails 4.0 application back to life.

Patricio Mac Adden
May 17th, 2023

Hybrid and Dynamic Database Multitenancy with Ruby on Rails

What is Hybrid and Dynamic Database Multitenancy and how to successfully achieve it with Ruby on Rails (> 6.0) and PostgreSQL? Our experience implementing a hybrid and dynamic database multitenancy system for one of the projects we’re involved in.

Nazareno Moresco
Apr 19th, 2023

Debunking myths about Ruby

There’s a lot of criticism of Ruby and Ruby on Rails. In this post, we will try and debunk four widespread myths about Ruby.

Patricio Mac Adden
Mar 29th, 2023

Why Ruby on Rails?

Ruby on Rails is our main tool for building MVPs and big web applications. There’s a wide array of myths about it online: that it’s old, or dead, or slow, that it’s not relevant anymore. We revisit our tech choice every year and we still chose Ruby on Rails. Here’s why.

Fernando Martínez
Mar 15th, 2023

Your old Ruby on Rails application sucks

Do you have a Ruby or Rails application in production for more than 4 or 5 years? Has the test suite crumbled to pieces because of too many broken or flaky tests that no one has time to fix? Do you feel your app needs a lot of love that no budget will ever be able to sustain? Read on to know what we do in these cases.

Fernando Martínez
Feb 15th, 2023

Upgrading Ruby on Rails applications

When maintaining Ruby on Rails applications, it’s always recommended to run the latest versions of the framework so it receives security patches and performance boosts from newer versions. In this post, we’ll see our way of upgrading Ruby on Rails applications.

Fernando Martínez and Patricio Mac Adden
Feb 1st, 2023

A case against form objects

Based on Ruby on Rails examples, the core idea should apply to other languages and frameworks.

Fernando Martínez
Jun 24th, 2020