diff --git a/guides/assets/images/hello-from-phoenix.png b/guides/assets/images/hello-from-phoenix.png index 041d9b3f3f..ee21ba31dd 100644 Binary files a/guides/assets/images/hello-from-phoenix.png and b/guides/assets/images/hello-from-phoenix.png differ diff --git a/guides/assets/images/hello-world-from-frank.png b/guides/assets/images/hello-world-from-frank.png index 340893e03c..25576ce84a 100644 Binary files a/guides/assets/images/hello-world-from-frank.png and b/guides/assets/images/hello-world-from-frank.png differ diff --git a/guides/assets/images/welcome-to-phoenix.png b/guides/assets/images/welcome-to-phoenix.png index 6fe39e4d89..8d2d35e6c7 100644 Binary files a/guides/assets/images/welcome-to-phoenix.png and b/guides/assets/images/welcome-to-phoenix.png differ diff --git a/guides/request_lifecycle.md b/guides/request_lifecycle.md index e6ac004598..e4a833c3d8 100644 --- a/guides/request_lifecycle.md +++ b/guides/request_lifecycle.md @@ -29,7 +29,7 @@ Phoenix generates a router file for us in new applications at `lib/hello_web/rou The route for our "Welcome to Phoenix!" page from the previous [Up And Running Guide](up_and_running.html) looks like this. ```elixir -get "/", PageController, :index +get "/", PageController, :home ``` Let's digest what this route is telling us. Visiting [http://localhost:4000/](http://localhost:4000/) issues an HTTP `GET` request to the root path. All requests like this will be handled by the `index/2` function in the `HelloWeb.PageController` module defined in `lib/hello_web/controllers/page_controller.ex`. @@ -58,7 +58,7 @@ defmodule HelloWeb.Router do scope "/", HelloWeb do pipe_through :browser - get "/", PageController, :index + get "/", PageController, :home end # Other scopes may use custom stacks. @@ -78,7 +78,7 @@ Let's add a new route to the router that maps a `GET` request for `/hello` to th scope "/", HelloWeb do pipe_through :browser - get "/", PageController, :index + get "/", PageController, :home get "/hello", HelloController, :index end ``` @@ -237,7 +237,7 @@ For this exercise, we're going to reuse `HelloController` created at the [previo scope "/", HelloWeb do pipe_through :browser - get "/", PageController, :index + get "/", PageController, :home get "/hello", HelloController, :index get "/hello/:messenger", HelloController, :show end