Blog

Ruby, Rails, and software craftsmanship.

Advanced uses of ‘select’ in Ruby

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

programming ruby-on-rails software-development software-engineering ruby
Dynamically changing the favicon in Rails

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

favicon front-end-development ruby-on-rails rails dynamic-programming
Integrate OpenAI to Rails

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

chatgpt ruby-on-rails ruby artificial-intelligence api
Unleashing Dynamic Method Creation in Ruby

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

dynamic-programming metaprogramming methods ruby-on-rails ruby
Rails ‘unmatched’ routes

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

ruby rails http-request ruby-on-rails 404-not-found
Ruby ‘Dig’ Hashes

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

ruby ruby-on-rails software-engineering advanced-programming programming
How to read Rails credentials from anywhere without loading Rails

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

security ruby-on-rails ruby credentials
Dynamically Build Where Clauses in Ruby on Rails

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

database ruby-on-rails sql activerecord mongoid