Ruby Enumerable Module
Introduction to the enumerable module Modules are the major result of inheritance, since they allow us to execute actions without having to write code and sharing features among unrelated classes....
Introduction to the enumerable module Modules are the major result of inheritance, since they allow us to execute actions without having to write code and sharing features among unrelated classes....
Why should you use Tailwind CSS with Rails? Tailwind CSS’s core concept is its utility-first fundamentals, aka being able to build complex components from a constrained set of simple utilities. Th...
What is object oriented programming (OOP)? Object Oriented Programming aims to bring the logics of the real world to programming languages in order to simplify and structure code. The easiest and...
What is a ViewComponent and why should you use them? A ViewComponent is simply a Ruby object and a template. There are five main reasons why you should use ViewComponents! Single Responsibilit...
Ruby-on-Rails and links The link_to helper simply builds links. It works not only to guide the user from one page to another, but to include parameters and queries in the redirection path. Many w...
Rails and AlpineJS : wedding time Have a sneak peak to the official AlpineJS documentation . AlpineJS is here to augment in the browser behaviours of HTML that is already rendered by the server. L...
What is a hash and how is it different from an array? Hashes, just as arrays, can be understood as lists of data that can be accessed, updated and deleted. As long as they share some similarities,...
1. Why VueJS and Rails Ruby-on-Rails minimalistic, default app starts without VueJS. Even JavaScript is optional. But only submitting forms and display inputs is no more a web standard. Dynamic, i...
Rails 8 : More confidence in existing tools Rails tend to anticipate the trends - which means how neat are the maintainers. ActionText is one example. Before Trix, let’s face it, giving any non-te...
What is pattern matching? If you are new to the feature, welcome to the typical “Pattern matching journey”; where first, you don’t know what it is, then, you don’t understand it, and finally, you ...