Working with Resourceful Routes in Ruby on Rails The concept of resourceful routing took me a long time to understand, but once it clicked, it changed how I viewed web applications. This post covers the basics: what a resource is, the routes it generates and how resourceful routing provides a nice organizational structure your Rails applications.
How to Route an Incoming URL to a Rack Application in Rails The Rails router can dispatch an HTTP request to a Rack endpoint, either in your application or within a gem. This is useful when you want to provide a well-isolated web UI or front-end to the users of your gem. In this post, we'll learn why you may want to do this, how it works, and how to do it.
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.
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.
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.
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 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.
How to Access Raw POST Data in Rails This post shows how you can access the raw, unaltered request body using a 20-year old method in the Rails framework (from the founder of Shopify). The `raw_post` method reads the request body, and is useful for web services or API controllers that need to directly work with raw requests.
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.