Blog
Ruby, Rails, and software craftsmanship.
Jul 25, 2023
Integrate OpenAI to Rails
Get started with OpenAI APIs. ChatGPT and all the AI-related topics are the rage these days in tech industries. So I want to talk about something related to...
Jul 12, 2023
Unleashing Dynamic Method Creation in Ruby
Demystifying Ruby’s “define_method”. Today I will talk about Meta Programming in Ruby, especially creating methods dynamically in a Ruby environment. In a si...
Jun 26, 2023
Rails ‘unmatched’ routes
How to handle the 404 (not found) route errors. In every web application, we need to handle unused routes preferably by showing information to the user that...
Jun 19, 2023
Ruby ‘Dig’ Hashes
A thorough examination of Ruby’s ‘dig’ method. Today, I want to talk a bit about a little-known method in Ruby language that works on both Arrays and Hashes...
Jun 07, 2023
How to read Rails credentials from anywhere without loading Rails
How to read Rails credentials from anywhere without Rails Advanced usage of Rails Credentials to read it from anywhere Why ? Why would you want to access Rai...
May 28, 2023
Dynamically Build Where Clauses in Ruby on Rails
Dynamically Build Where Clauses in Ruby on Rails How to build conditional Where queries of ActiveRecord and Mongoid. In Ruby on Rails, the default choice for...