From 97cfd87d4d80bc4acc152a2ea046d0b4f931ba84 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Fri, 30 Dec 2022 17:40:47 -0700 Subject: [PATCH] Fix embed_templates call in migration guide (#20) --- lib/phoenix_view.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phoenix_view.ex b/lib/phoenix_view.ex index 283bc0e..31486d0 100644 --- a/lib/phoenix_view.ex +++ b/lib/phoenix_view.ex @@ -131,7 +131,7 @@ defmodule Phoenix.View do according to the `render_existing` documentation. 2. Replace `use MyApp, :view` by `use MyApp, :html` and invoke - `embed_templates "../templates/my"`. Alternatively, you can move + `embed_templates "../templates/my/*"`. Alternatively, you can move both the HTML file and its templates to the `controllers` directory, to align with Phoenix v1.7 conventions.