Nested Modules in Ruby Ruby provides two different ways to define nested modules. This post explains the difference between them and how to decide which one to use. It also explains the `Module.nesting` method which returns the list of modules nested when called.
The Difference Between load, autoload, require, and require_relative in Ruby 📖 Loading external files can get tricky in Ruby, but it doesn't have to be. This post explains the usage of Ruby's load, require, and require_relative methods, and when to use each.
Open GitHub Repositories in VS Code In-Browser GitHub allows you to open any repository in an in-browser VS Code by just pressing the `.` key on your keyboard.
How to Explicitly Render a Different View in Rails A standard Rails controller receives an incoming HTTP request, generates the data needed for the response, and renders an HTML view template. 💡An API controller
Method Shorthand in Ruby While reading the docs, I learned that Ruby (3.0 and up) provides a shorthand syntax for one-line methods, similar to computed properties in C#
Map a Resourceful Route in Rails to Another Controller Class 💡This post is part of my handbook on the Rails Router.The Rails RouterEverything you need to know about the incredible routing system in Rails.
Understanding Shallow Nested Routes in Rails 💡This post is part of my handbook on the Rails Router.The Rails RouterEverything you need to know about the incredible routing system in Rails.
Working with Nested Resources in Ruby on Rails 💡This post is part of my handbook on the Rails Router.The Rails RouterEverything you need to know about the incredible routing system in Rails.
How to List and Filter Routes in Ruby on Rails 💡This post is part of my handbook on the Rails Router.The Rails RouterEverything you need to know about the incredible routing system in Rails.
Understanding the Match Method in Rails Router In this post, we will learn about the match method, which forms the core of the Rails router. We'll also explore how the match method works behind the scenes. Once you really understand the match method and its options, the rest of the routing methods and shorthands become very easy to understand.
Array Inquiry in Rails The ArrayInquirer class provided by the Active Support framework in Rails provides a readable way to check the contents of an array. This post explores how you can implement this using metaprogramming in Ruby.
How to Override the Named Route Parameter ID in Rails This post is part of my handbook on the Rails Router.The Rails RouterEverything you need to know about the incredible routing system in Rails.