From 2b8cb84e161115b0b93562b889e29b332e77597b Mon Sep 17 00:00:00 2001 From: Kyler Moore Date: Sat, 3 Oct 2020 11:44:16 -0400 Subject: [PATCH] Additional explanation to overriding resource routes --- guides/source/routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/routing.md b/guides/source/routing.md index a9daad43d4..0c7e0adfb4 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -640,7 +640,7 @@ get 'exit', to: 'sessions#destroy', as: :logout This will create `logout_path` and `logout_url` as named route helpers in your application. Calling `logout_path` will return `/exit` -You can also use this to override routing methods defined by resources, like this: +You can also use this to override routing methods defined by resources by placing custom routes before the resource is defined, like this: ```ruby get ':username', to: 'users#show', as: :user