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)