Rails flash messages and UX
Flash message is a very old notion of Ruby-on-Rails. This article will be focused on the usability of these messages. Flash is a designer vocabulary Flash messages are not specific to Rails. Actu...
Flash message is a very old notion of Ruby-on-Rails. This article will be focused on the usability of these messages. Flash is a designer vocabulary Flash messages are not specific to Rails. Actu...
Prequisites Tool I will use in this tutorial : $> ruby -v ruby 3.1.2p0 // you need at least version 3 here $> bundle -v Bundler version 2.2.11 $> npm -v 8.3.0 // you need at le...
Split method for a Ruby array Let’s start with a simple example : [1, 42, 99, 200].split(42) # => returns [[1], [99, 200]] Yikes! It returns a 2D-Array. After all, it’s logical because you h...
What are Rails console commands? Rails console commands what you can politely ask Rails to execute, like launching a local web server, launch test, and so on. For example, “rails new” will create...
Nature of arrays As we have seen in other blog entries, arrays and hashes are basic concepts in any programming language. It is the best way to encapsulate and organize data. Arrays, specifically,...
What is a multiline string ? A multiline string is a string that, when displayed, returns the output in more than one line. message = "Hello! This is my first multiline string." p message # =>...
Introducing Pundit As you probably know, web applications need the ability to assign different roles and permissions. New developers often confuse two terms - Authorization and Authentication. A...
Intro Operators are a basic tool in programming languages. The main ones are arithmetic and comparison operators. Ruby includes the ternary operator, which encapsulates both: an if statement and a...
SvelteJS vs others Svelte is the new paradigm of frameworks. Since it came to life in 2016, developers have argued a lot about it and compared it to its big brothers: React, Angular and Vue. In th...
Ruby String Strings are one of the main and most used classes in programming languages. A string is a container of character sequences. Typically, strings represent text, but they can encapsulate ...