Blog
Ruby, Rails, and software craftsmanship.
Nov 14, 2023
Advanced uses of ‘select’ in Ruby
Advanced use cases for the ‘select’ methodIn the world of Ruby programming, the select method is more than just a basic tool for filtering arrays. It’s versatil
Oct 20, 2023
Dynamically changing the favicon in Rails
How to render a favicon depending on the page or action in Ruby on RailsThe little details often make a big difference in the ever-evolving web development land
Jul 25, 2023
Integrate OpenAI to Rails
Get started with OpenAI APIsChatGPT and all the AI-related topics are the rage these days in tech industries. So I want to talk about something related to that
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 simple
Jun 26, 2023
Rails ‘unmatched’ routes
How to handle the 404 (not found) route errorsIn every web application, we need to handle unused routes preferably by showing information to the user that what
Jun 19, 2023
Ruby ‘Dig’ Hashes
A thorough examination of Ruby’s ‘dig’ methodToday, I want to talk a bit about a little-known method in Ruby language that works on both Arrays and Hashes calle
Jun 07, 2023
How to read Rails credentials from anywhere without loading Rails
How to read Rails credentials from anywhere without RailsAdvanced usage of Rails Credentials to read it from anywhereWhy ?Why would you want to access Rails cre
May 28, 2023
Dynamically Build Where Clauses in Ruby on Rails
How to build conditional Where queries of ActiveRecord and MongoidIn Ruby on Rails, the default choice for object-relational mapping (ORM) is ActiveRecord, whic