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...

chatgpt ruby-on-rails ruby artificial-intelligence api
Integrate OpenAI to Rails — open article

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...

dynamic-programming metaprogramming methods ruby-on-rails ruby
Unleashing Dynamic Method Creation in Ruby — open article

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...

ruby rails http-request ruby-on-rails 404-not-found
Rails ‘unmatched’ routes — open article

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...

ruby ruby-on-rails software-engineering advanced-programming programming
Ruby ‘Dig’ Hashes — open article

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...

ruby-on-rails credentials security ruby
How to read Rails credentials from anywhere without loading Rails — open article

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...

ruby-on-rails activerecord mongoid database sql
Dynamically Build Where Clauses in Ruby on Rails — open article