Blog

Ship fast with Rails 6 and Bootstrap v5.

Rails form : tutorial from the ground

A basic tutorial about how to handle web forms with Ruby-on-Rails.

#forms #rails
Posted July 19, 2021 ‐  8 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.

#ruby
Posted June 10, 2021 ‐  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.

#webpack #rails #javascript
Posted May 18, 2021 ‐  10 min read

Rails : how to work with Bootstrap v5

A tiny article to explain the daily workflow when working with Rails and Bootstrap

#bootstrap #rails
Posted May 06, 2021 ‐  2 min read

How to write a switch statement in Ruby

The "switch" statement in Ruby is actually made by a case/when statement. Let's see how.

#ruby
Posted April 27, 2021 ‐  5 min read

erb vs haml

In the Ruby-on-Rails word, they are known as templating languages. Let's compare each other and pick a winner.

#rails
Posted April 19, 2021 ‐  2 min read

Ruby private method : a hack

Private methods exist for a reason. However they can lead to tricky situations. Here is a quick hack about private methods in Ruby.

#ruby
Posted April 13, 2021 ‐  4 min read

Rails 7 : a preview

Let's imagine what Rails 7 could be.

#rails
Posted April 08, 2021 ‐  7 min read

Rails : How to create a custom Bootstrap theme

Customise Bootstrap with Rails is not very complicated : Bootstrap v5 opened wide the doors (and variables file) to make it easy.

#bootstrap #rails
Posted April 06, 2021 ‐  4 min read

Webpacker vs Sprockets

Webpacker and Sprockets both try to manage the frontend assets of Ruby-on-Rails applications. They are both integrated inside default Rails applications. But they're doing the same job actually, so after 4 years of using both, it's time to choose.

#webpack #rails #javascript
Posted April 01, 2021 ‐  5 min read

Ruby : nil? vs blank? vs empty? vs present?

More often than not, you have to check if an object is empty. But what does "empty" means exactly ?

#ruby
Posted March 30, 2021 ‐  8 min read

Tailwind vs Bootstrap, from a Rails developer point of view

Tailwind and Bootstrap are the most used CSS framework by now. Let's see how they compare - with the bias of a Ruby-on-Rails developer point of view.

Posted March 26, 2021 ‐  4 min read

How to learn Rails when you already have coding experience

Rails is a full-stack web framework, based on Ruby. If you want to learn Rails and you already have some coding experience, here are my opinions. As any opinion, it can be widely discussed :)

Posted March 22, 2021 ‐  8 min read

Rails controller : The Rails Way vs functional way

This article is about "how to unit test a rails controller". I'm showing an attempt to do so, and why I finally stick to "the Rails way".

#rails
Posted March 18, 2021 ‐  4 min read

Rails new options : full list, and minimalistic approach

In this article, we will see how to create a new Rails application, with all available options. There's also a fantastic --minimal option.

#rails
Posted March 16, 2021 ‐  7 min read

Active Support : Rails delightful additions to Ruby

ActiveSupport is one of the components of Ruby on Rails. As its name suggest, it "supports" applications by providing many utilities like encrypting, querying data, callbacks, security utilities, and a lot more.

#rails
Posted March 11, 2021 ‐  3 min read

Rails without jQuery

I have never followed the "no-jquery" hype. But let's face it, even the giants are removing jQuery from their stack. Rails 6 now works without jQuery. Bootstrap 5 now works without jQuery. Maybe it's time to reconsider.

#rails
Posted March 08, 2021 ‐  2 min read

Rails 6, Bootstrap 5 : a tutorial

A short tutorial. Learn how to integrate last Bootstrap 5 version into Ruby-on-Rails. Using webpack(er).

#bootstrap #rails
Posted March 02, 2021 ‐  5 min read