Rails administrate, big tutorial, bits of philosophy
1. Prerequisites $> ruby -v ruby 3.0.0p0 // you need at least version 3 here $> bundle -v Bundler version 2.2.11 $> npm -v 8.3.0 // you need at least version 7.1 here $> ya...
1. Prerequisites $> ruby -v ruby 3.0.0p0 // you need at least version 3 here $> bundle -v Bundler version 2.2.11 $> npm -v 8.3.0 // you need at least version 7.1 here $> ya...
Let’s start from a simple example. 1. Without any attr_accessor class Book def initialize(title, author) @title = title @author = author end end And then, create a...
Prerequisites Here are the tools we will use in this tutorial : $> ruby -v ruby 3.1.0p0 // you need at least version 3 here $> bundle -v Bundler version 2.2.11 $> npm -v 8.3.0 ...
1. Prerequisites Check that you have ruby 3 already installed. Check you also have bundler installed, and npm above version 7 $> ruby -v ruby 3.0.0p0 // you need at least version 3 here $&...
Motivation We don’t have a lot of Ruby constants in the bootrAils starter. However, it’s always good to know how they work when the need arises. “Constants” are variables that are not meant to be ...
0. Motivation At BootrAils we are currently considering dropping the entire default “Rails Way” to manage frontend assets (CSS, images, JS, etc), by replacing it with ViteJS. (See this article : h...
Motivation At BootrAils, we are trying to keep the stack as simple as possible. However, the need for the existence of background jobs arises very quickly when you create a new Rails application ...
1. Display time, down to milliseconds in Ruby current_time = Time.now current_time.strftime('%H:%M:%S.%L') # => "10:52:07.119" If you want more info about strftime, please read this article :...
0. The origins : the Rails doctrine™ At BootrAils, Cypress is already integrated, configured, with a few tests to cover and document the application. We find this tool very interesting because it ...