Skip to content

Commit

Permalink
Fix action rename example in controllers guides
Browse files Browse the repository at this point in the history
Only action name should be changed to match route renaming.
Change of passing template's name leads to bug, as the template is not renamed.
And description above clearly talks only about action.
  • Loading branch information
ShPakvel committed Oct 9, 2024
1 parent d00f197 commit ab4b579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ defmodule HelloWeb.PageController do
...

def index(conn, _params) do
render(conn, :index)
render(conn, :home)
end
end
```
Expand Down

0 comments on commit ab4b579

Please sign in to comment.