ruby-on-rails

Rails, Cypress : testing the whole stack is definitely easier

Cypress is a well-known tool for JavaScript developers. It allows elegant end-to-end testing of any application. For Ruby-on-Rails, it's an extremely relevant tool to use.

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

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

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

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

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

Rails 7 : a preview

I'm not part of the Rails team, I'm just a daily Rails developer. So this list comes only from my imagination. Let's dream.

Posted May 8, 2021 - tagged ruby-on-rails  ‐  6 min read

Rails : How to work with Bootstrap v5

A tiny article to explain the workflow when you work with Bootstrap v5.

Posted May 6, 2021 - tagged ruby-on-rails  ‐  3 min read

How to create a custom Bootstrap theme for Rails

A step-by-step tutorial about how to create a custom Bootstrap v5 theme for Rails

Posted April 6, 2021 - tagged ruby-on-rails  ‐  4 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 April 6, 2021 - tagged ruby-on-rails  ‐  4 min read

Webpacker vs Sprockets : the battle is over

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.

Posted April 1, 2021 - tagged ruby-on-rails  ‐  5 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 - tagged ruby-on-rails  ‐  8 min read

Rails new app, options, and minimalistic approach

'rails new' is a well-known command to create fresh new Rails application. There is now a --minimal flag that allow the developer to build the most simple possible Rails app. Let's see how to take profit from this simplification.

Posted March 16, 2021 - tagged ruby-on-rails  ‐  6 min read

Active Support : Rails delightful additions to Ruby

I have always used ActiveSupport, but I wasn't aware of it. Until I meet a tweet from Sebastien, who will launch a course about ActiveSupport soon. So I decided to interview him about this Rails 'magic feature'.

Posted March 11, 2021 - tagged ruby-on-rails  ‐  3 min read

Rails without jQuery : a new journey has started

I have never worked *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. So as a developer, when I see this kind of trend, I wonder if it's not time to reconsider.

Posted March 8, 2021 - tagged ruby-on-rails  ‐  2 min read

Rails 6, Bootstrap 5 : a tutorial

Bootstrap 5 is highly customisable and delightful when you need to deliver a consistent design as fast as possible. Let's see how to use it with the last Rails version.

Posted March 2, 2021 - tagged ruby-on-rails  ‐  6 min read