Skip to content

Commit

Permalink
Correct documentation about route helpers generation (#5823)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Pozdnyakov <[email protected]>
  • Loading branch information
L4vlet and Andrew Pozdnyakov authored Jun 12, 2024
1 parent 8faa3ef commit b0fdc01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phoenix/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ defmodule Phoenix.Router do
## Options
* `:as` - configures the named helper. If false, does not generate
* `:as` - configures the named helper. If `nil`, does not generate
a helper. Has no effect when using verified routes exclusively
* `:alias` - configure if the scope alias should be applied to the route.
Defaults to true, disables scoping if false.
Expand Down Expand Up @@ -966,7 +966,7 @@ defmodule Phoenix.Router do
and as the prefix for the parameter in nested resources. The default value
is automatically derived from the controller name, i.e. `UserController` will
have name `"user"`
* `:as` - configures the named helper. If false, does not generate
* `:as` - configures the named helper. If `nil`, does not generate
a helper. Has no effect when using verified routes exclusively
* `:singleton` - defines routes for a singleton resource that is looked up by
the client without referencing an ID. Read below for more information
Expand Down

0 comments on commit b0fdc01

Please sign in to comment.