Tutorials




Build Messaging Between Ruby/Rails Applications with ActiveMQ
One of the tools that are rarely covered in the Ruby/Rails world are the message brokers (probably because they mostly written in Java). Everyone are familiar mostly with background jobs processing, but message brokers offer a more flexible approa...





How to test Ruby methods that involve puts or gets
What makes the ask_for_number method challenging to test is a dependency. Most methods can be tested by saying, âWhen I pass in argument X, I expect return value Y.â This one isnât so straightforward though. This is more like âWhen the user sees o...

Simple Way to Encrypt and Decrypt Data in Rails without using Gems
Storing sensitive data in plaintext can seriously harm your internet business if an attacker gets hold of the database. Encrypting data is also a GDPR friendly best practice. In this tutorial I will describe a simple way to securely encrypt, store...