Understanding Named 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.
How to Add a root Route 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.
How to Check If Value Exists in an Array in Ruby (and Rails) In this post, we'll learn two different ways to check if a value is included in an Array.
How to Redirect Incoming HTTP Requests Using Rails Router 💡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.
Tracking TODO and FIXME Comments with Rails Notes Command This post shows how you can use the notes command in Rails to search through your codebase for comments starting with a specific keyword. By default, it searches the codebase for FIXME, OPTIMIZE, and TODO comments, but you can also configure it to use custom keywords.
Rails Router: Dynamic Segments and Query Strings 💡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.
A Brief Overview of the Rails Routing Config File The `config/routes.rb` file configures the Rails routing system. This post gives a quick overview of this file with examples.
Introduction to the Routing System 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.
What Happens When You Call render? Let's Understand the Rails Rendering Process This article explains the Rails rendering process in the context of returning JSON data from the controller. Hopefully, it will make it clear what really happens when you call the render method from the controller.
Regular Expressions in Ruby Regular expressions can be both terribly awkward and extremely useful. In this introductory post, we will learn the basics of regular expressions in Ruby programming language and how to use them for routine programming tasks.
Let's Learn Ruby on Rails + Hotwire by Building a To-Do List In this article, we'll learn Ruby on Rails and Hotwire by building a to-do list from scratch. It shows how to build single-page web applications using traditional web architecture (server-rendered HTML), without the complexity of modern JavaScript frameworks like React.
How to Undo Generate Scaffold Command in Rails Rails offers the convenient `rails destroy` command to undo the effects of any `rails generate` command. Also, don't forget to rollback the migration, if you have already applied it.