From 022e3a3c0a436c5426dc568d900afcbe54fa34f3 Mon Sep 17 00:00:00 2001 From: Axel Baudot <74733630+axelbdt@users.noreply.github.com> Date: Thu, 9 Mar 2023 21:46:54 +0000 Subject: [PATCH] docs: change getting started directory structure to match realworld (#78) --- .../tutorials/getting-started-with-ash-and-phoenix.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/tutorials/getting-started-with-ash-and-phoenix.md b/documentation/tutorials/getting-started-with-ash-and-phoenix.md index 757fb02..2dcb2b1 100644 --- a/documentation/tutorials/getting-started-with-ash-and-phoenix.md +++ b/documentation/tutorials/getting-started-with-ash-and-phoenix.md @@ -138,7 +138,7 @@ An Ash registry points to one or more resources. In our case we will only have a For now take a look at the `Blog` API and the `Blog.Registry`: ```elixir -# lib/my_ash_phoenix_app/blog.ex +# lib/my_ash_phoenix_app/blog/blog.ex defmodule MyAshPhoenixApp.Blog do use Ash.Api @@ -177,16 +177,16 @@ It's convention to place all the resource in their own resources folder. So when lib/ ├─ my_ash_phoenix_app/ │ ├─ blog/ +│ │ ├─ blog.ex │ │ ├─ registry.ex │ │ ├─ resources/ │ │ │ ├─ post.ex -│ ├─ blog.ex ``` Below is the resource module. Read the comments carefully, every line is explained: ```elixir -# lib/my_ash_phoenix_app/blog/post.ex +# lib/my_ash_phoenix_app/blog/resources/post.ex defmodule MyAshPhoenixApp.Blog.Post do # Using Ash.Resource turns this module into an Ash resource.