Skip to content

Commit

Permalink
Fix path and module name in LiveView post (elixirschool#1750)
Browse files Browse the repository at this point in the history
* Update 2018-03-18-phoenix-live-view.md

* Fix typo for GithubDeployView module in example
  • Loading branch information
Robert Beene authored and doomspork committed Mar 20, 2019
1 parent 0531f19 commit 6daba51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/2018-03-18-phoenix-live-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ config :demo, MyApp.Endpoint,
live_reload: [
patterns: [
...,
~r{lib/my_app/live/.*(ex)$}
~r{lib/my_app_web/live/.*(ex)$}
]
]
```
Expand All @@ -149,7 +149,7 @@ defmodule MyApp.PageController do
alias Phoenix.LiveView

def index(conn, _) do
LiveView.Controller.live_render(conn, MyApp.GithubDeployView, session: %{})
LiveView.Controller.live_render(conn, MyAppWeb.GithubDeployView, session: %{})
end
end
```
Expand Down

0 comments on commit 6daba51

Please sign in to comment.