Tutorials


Rails 6.1 adds values_at attribute method for Active Record
Rails 6.1 simplifies retrieving values of attributes on the Active Record model instance by adding the values_at attribute method. This is similar to the values_at method in Hash and Array.Let’s check out an example of extracting values from a Use...




Introduction to Rails testing with RSpec and Capybara
I didn’t understand the importance of testing and used to think writing test was an extra effort (my app already work well when I wrote it, why should I spend extra time to write test for it?), boy I was so wrong 😅.Now I work in an enterprise hand...


How to GraphQL with Ruby, Rails,Active Record, and no N 1
You work on a mature web application that cleanly separates backend and frontend. The server-side code, written in Ruby, is mostly responsible for translating HTTP requests into SQL statements (with the help of an ORM) through rich and well-docume...


Create command line application with Ruby available via Homebrew
The goal of this article is to show you how you can create your command line application using the Ruby programming language and make it available.Our goal is to build a get_joke application that will render a random joke about Chuck Norris. The c...