Update phoenix.md

path helpers for routes should include `conn` as their first argument.
This commit is contained in:
Michael Berkowitz 2017-10-17 16:01:08 -04:00 committed by GitHub
parent f73bd5b2b6
commit bef83f48e5
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,8 @@ end
``` ```
```elixir ```elixir
user_post_path(:index, 17) # → /users/17/posts user_post_path(conn, :index, 17) # → /users/17/posts
user_post_path(:show, 17, 12) # → /users/17/posts/12 user_post_path(conn, :show, 17, 12) # → /users/17/posts/12
``` ```
[Phoenix routing cheatsheet](./phoenix-routing) [Phoenix routing cheatsheet](./phoenix-routing)