ViteJS, Rails : a wonderful combination

vite_rails is a fantastic gem that completely drop the need for jsbundling, Webpacker, importmaps and/or Sprockets.

Posted January 17, 2022 - tagged ruby-on-rails  ‐  7 min read

Ruby strftime, short and long story

"strftime" stands for "string from time". Which means "please Ruby format the time into a human-friendly format". Let's see how.

Posted January 13, 2022 - tagged ruby  ‐  9 min read

Rails authentication with Rodauth, an elegant Ruby gem

Rodauth is a wonderful Ruby gem that helps to handle authentication problems. Let's see how to integrate it into a Rails application.

Posted January 10, 2022 - tagged ruby-on-rails  ‐  8 min read

Ruby Enumerator : the what, the why, the how

If you're on the path to learning Ruby then you might have heard of this thing called an 'Enumerator'. As scary as it sounds, Enumerators are actually your friends and will be helping you a lot on your journey to becoming a Ruby *aficionado*. Since they are so important, let's quickly get you up and running within this lesson. We will be going over the what, the why, and the how of Enumeration.

Posted January 6, 2022 - tagged ruby  ‐  7 min read

How to create tons of Rails applications

This article explains why, and how to quickly create as much Rails applications as you need, using any desired version of Rails.

Posted January 3, 2022 - tagged ruby-on-rails  ‐  3 min read

Rails 7, Bootstrap 5 tutorial : fear and relief

Rails 7 has a very opinionated way to handle the front-end assets. Let's see how it works for Bootstrap 5.

Posted December 20, 2021 - tagged ruby-on-rails  ‐  7 min read

How to add a column with Rails

How to add a database column with Ruby-on-Rails ? Here is the short, and the long answer.

Posted December 15, 2021 - tagged ruby-on-rails  ‐  6 min read

Rails form : tutorial from the ground

Form is an old standard from the web, and handling form with Rails is almost as old as Rails itself. But submission tend to be a lot more complex nowadays making the UX and data-flow not so easy to understand, so sometimes it's good to go back to basics

Posted July 18, 2021 - tagged ruby-on-rails  ‐  7 min read

Ruby : The 'unless' keyword

You are probably familiar with the 'if else' control flow but there are certain situations where there may be a visually better way to write these statements. Here we will discuss how you can achieve this via the 'unless' keyword in Ruby and the different ways you can use it.

Posted June 18, 2021 - tagged ruby  ‐  3 min read

Rails with Webpacker : a full setup

Webpacker is a wrapper around Webpack, but is not fully used in a default new Rails application. Let's see how to set up Rails with Webpacker, in order to use any kind of frontend assets.

Posted May 18, 2021 - tagged ruby-on-rails  ‐  9 min read