Dynamically fading flash messages in Vue.js and VueX

We will be creating dynamcally fading flash messages with Vue.js and VueX. Let's say you want to display a flash message on a certain condition and you want that flash to show only for a couple of seconds and disappear afterwords. It is very easy to implement it yourself within a minute without any 3rd … Continue reading Dynamically fading flash messages in Vue.js and VueX

Advertisements

Ruby detective #1 – Singleton Class

I decided to challenge myself with a series of topic about Ruby. The first series is "method lookup". Let's look at an example class. Here I define a simple class Robot which has an instance method 'say_hello' and a class method 'droids' which finds all robots of type 'droid'. Obviously '.droids' method is not there … Continue reading Ruby detective #1 – Singleton Class

How to implement Rails params from the ground up in Ruby?

Hi guys! This time around I am going to show you how to implement Rails params completely from the ground up. As you probably already know, Rails has something called strong parameters. This is a security practice to prevent accidentally allowing users to update sensitive model attributes, for example "admin" flag in user model in … Continue reading How to implement Rails params from the ground up in Ruby?