ruby-on-rails

Rails pundit tutorial

Authorization is an important part of any SaaS. Let's see what it means, and how to implement it with the pundit gem for Rails.

Posted October 31, 2022 - tagged ruby-on-rails

10 min read

Ruby-on-Rails and SvelteJS tutorial

SvelteJS is a very promising JavaScript tool that gained traction recently. For those who don't like Hotwire for Ruby-on-Rails, it sounds a good alternative.

Posted October 17, 2022 - tagged ruby-on-rails

7 min read

Ruby-on-Rails authentication tutorial with Devise

Ruby-on-Rails has no built-in authentication mechanism. So let's pick the well-known gem Devise in this tutorial.

Posted October 3, 2022 - tagged ruby-on-rails

8 min read

Ruby vs JavaScript

Ruby and JavaScript and two fantastic languages for the web. Let's see the difference between them, to help you to learn Javascript if you know Ruby, and vice-versa.

Posted September 26, 2022 - tagged ruby-on-rails

11 min read

Ruby group_by or Rails group_by

The goal of this article is to understand the group_by method from a theoretical and practical point of view, both for Ruby, and Rails.

Posted September 19, 2022 - tagged ruby-on-rails

5 min read

Rails faker gem overview

The faker gem for Rails is here to help your test database to be seeded with real-looking test data. Let's see how.

Posted September 8, 2022 - tagged ruby-on-rails

6 min read

Ruby-on-Rails and Arel

Databases are the pillar of web application. The key is to understand how they work and the related tools, going from standard SQL language to Arel.

Posted September 5, 2022 - tagged ruby-on-rails

5 min read

How to set up JavaScript testing for Rails 7 with Jest

In this article, we'll see how to set up JavaScript testing, with Jest, for a brand new Rails 7 project.

Posted August 25, 2022 - tagged ruby-on-rails

3 min read

Rails log monitoring - tutorial and home-made example

You can use a SaaS to monitor your logs, but you can also directly implement this feature inside your Ruby-on-Rails stack.

Posted July 11, 2022 - tagged ruby-on-rails

5 min read

Ruby-on-Rails and Avo Tutorial

Avo is a tool that empowers developers to create beautiful admin panels for Ruby-on-Rails apps quickly.

Posted July 7, 2022 - tagged ruby-on-rails

6 min read

Ruby-on-Rails and Tailwind CSS Tutorial

Tailwind CSS is a utility-first CSS framework with tons of classes that can be used to build any design directly in HTML.

Posted June 30, 2022 - tagged ruby-on-rails

6 min read

Ruby-on-Rails ViewComponents tutorial and examples

ViewComponent is a Ruby gem for creating reusable, testable, and encapsulated view components in Ruby-on-Rails.

Posted June 23, 2022 - tagged ruby-on-rails

6 min read

Rails link_to tutorial and examples

link_to is a helper method in Ruby that is very useful to enable users to navigate through applications.

Posted June 14, 2022 - tagged ruby-on-rails

5 min read

Ruby-on-Rails and AlpineJS tutorial

AlpineJS is a very promising JavaScript tool for already-rendered HTML. It sounds an awfully good fit for Ruby-on-Rails. Let's dive in.

Posted June 9, 2022 - tagged ruby-on-rails

5 min read

Ruby-on-Rails and VueJS tutorial

Ruby-on-Rails for the backend part, and some VueJS into your views. This short tutorial helps you to put pieces together.

Posted May 30, 2022 - tagged ruby-on-rails

6 min read

Rails 8 : unreleased features

Rails 8 has not yet a release date at this time of writing. What kind of feature could be fun in the (future) Ruby-on-Rails 8 release ? Let's dream.

Posted May 23, 2022 - tagged ruby-on-rails

6 min read

Ruby-on-Rails : Le Wagon, a review

Ruby-on-Rails : everything you should know before joining a Web Development Bootcamp, and my own review of Le Wagon.

Posted May 17, 2022 - tagged ruby-on-rails

Last update : April 17, 2022 5 min read

How to use Rails flash messages

How to effectively use and implement flash messages with Ruby-on-Rails

Posted May 9, 2022 - tagged ruby-on-rails

6 min read

Kill Rails server : a how-to guide

How to kill your Rails server ? This could happen if your Rails server is buggy, and restart is not possible.

Posted May 2, 2022 - tagged ruby-on-rails

4 min read

Ruby on Rails, the MVC architecture

Ruby-on-Rails is known as a MVC framework. Let's see what does this means.

Posted April 25, 2022 - tagged ruby-on-rails

5 min read

Rails analytics made simple

Analytics (i.e. stats about your visitors) is nowadays not cheap. Let's see why, and let's see how Rails could help.

Posted March 21, 2022 - tagged ruby-on-rails

7 min read

Rails 7 Hotwire : a tutorial

Hotwire is the new functionality of Rails that gained momentum lastly. This tutorial is a practical introduction to each feature.

Posted March 7, 2022 - tagged ruby-on-rails

10 min read

How to rename a Rails app

Here are the instructions to rename an existing Rails app. Nothing really risky, it should be a set-and-forget thing.

Posted March 3, 2022 - tagged ruby-on-rails

2 min read

Rails administrate : big tutorial, bits of philosophy

administrate is a gem that allows you to build an admin dashboard. It's often qualified as DSL-less admin builder, i.e. every file your admin dashboard rely on, can be fully overridden by the developer. Let's see how.

Posted February 28, 2022 - tagged ruby-on-rails

9 min read

Action Mailer : a tutorial

Action Mailer is already included in any new Rails application. However in this tutorial we will take time to see how each piece of code works. In development, test and production mode. Thus, we hope to increase confidence, and remove any bug fear of any newcomer to the stack.

Posted February 21, 2022 - tagged ruby-on-rails

8 min read

Debug Rails 7 with ruby/debug

From Rails 7, byebug has been replaced by ruby/debug, a feature that is available in Ruby 3.1, and available as a gem in every new Rails project.

Posted February 14, 2022 - tagged ruby-on-rails

11 min read

Custom esbuild for Rails

Inside Rails 7 apps, esbuild is wrapped into jsbundling. But what if you want to customize this build ?

Posted February 7, 2022 - tagged ruby-on-rails

5 min read

Rails, Sidekiq : full tutorial

Sidekiq allows Rails to launch any task in the background. Let's see how, from zero to production.

Posted January 31, 2022 - tagged ruby-on-rails

8 min read

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

Last update : January 24, 2021 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

Last update : January 17, 2021 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

Last update : January 3, 2021 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

Last update : December 21, 2021 6 min read


🎉 Special offer : 10% off for lifetime license
Download