From bef83f48e5c67b9f6a43a5897224014fad4fc9a5 Mon Sep 17 00:00:00 2001 From: Michael Berkowitz Date: Tue, 17 Oct 2017 16:01:08 -0400 Subject: [PATCH] Update phoenix.md path helpers for routes should include `conn` as their first argument. --- phoenix.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phoenix.md b/phoenix.md index c80d4094c..a1acfdf12 100644 --- a/phoenix.md +++ b/phoenix.md @@ -85,8 +85,8 @@ end ``` ```elixir -user_post_path(:index, 17) # → /users/17/posts -user_post_path(:show, 17, 12) # → /users/17/posts/12 +user_post_path(conn, :index, 17) # → /users/17/posts +user_post_path(conn, :show, 17, 12) # → /users/17/posts/12 ``` [Phoenix routing cheatsheet](./phoenix-routing)