How to index big tables in Rails without downtime

New applications are great, it is easier to add new functionalities and life is all roses. But you do not want to be at that stage forever because that would mean that not many people are using your application. Hopefully, there will be a time in which your users start liking your application, it becomes […]

How to use ActiveRecord Explain in Ruby on Rails

In today’s post we will see a tool that can help you to bring your ActiveRecord queries to the next level in terms of performance. Quite surprisingly to me, after interviewing many Ruby on Rails developers I realized that many people do not know it even exists. Today we will talk about ActiveRecord’s explain command. […]

Include, prepend and extend with Ruby modules

In my previous post we saw how to add functionality to already existing objects thanks to the decorator pattern. Particularly, we discussed how to add more equipment (shield and armor) to different King objects which by default only had a sword. We also saw how to do it the Ruby way, mixing modules. But what […]

Decorator pattern, the Ruby way

Hey! Did you ever want to add some functionality to an already existing method, but you feel that monkey patching or inheritance are not probably the best way to do it? In today’s post I will show you how you can achieve that in an elegant way. Did you guess it? Today we are going […]

3 things you must know about Ruby’s bang methods (!)

In this week’s post I am going to talk you about a topic that was asked in my YouTube channel, which is how to use bang methods in Ruby, those we write with a trailing exclamation mark (!). Stay with me if you want to become an expert on this field. Let’s go! 1. It […]

Las 3 cosas que deberías saber sobre los métodos bang (!) en Ruby

En el post de esta semana te voy a hablar de un tema que se preguntó en mi canal de YouTube, que es sobre cómo utilizar los métodos bang en Ruby, esos a los que les ponemos una exclamación al final (!). Quédate conmigo para convertirte en un experto en esto de los métodos bang. […]

Extensión it is a present para spree commerce

En el post de hoy quería daros una guía de cómo crear una extensión para Spree Commerce, y para ello me iba a basar en la extensión que hemos creado mi mujer y yo en Be Bellón para que nuestros clientes puedan marcar que quieren enviar los kits como regalos y añadir una dedicatoria, pero […]

Spree It is a present extension for Spree Commerce

In today’s blog post I wanted to give you a guide on how to create extensions for Spree Commerce, and to do that, I was going to base it on the extensión that my wife and I have created for Be Bellón, so that our clients can indicate whether they want to send our kits […]

¿Cómo crear una extensión para Spree Commerce?

¡Hola! ¡Muy buenas a todos! La semana pasada os presenté la extensión Spree It is a present que creé para Be Bellón y os prometí que esta semana os contaría cómo se hacen estas extensiones. Como lo prometido es deuda, y tomando como ejemplo esta extensión, se avecina un post técnico 😉 Crear una extensión […]

How to create a Spree Commerce extension

Hi everybody! Last week I showed you the extension Spree It is a present I created for Be Bellón and I promised you that this week I would tell you how to create these extensions. A promise is a promise, so taking this extension as an example, techie post is coming 😉 CREATE AN EXTENSION FOR SPREE COMMERCE In […]