Skip to content

Commit

Permalink
README tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
tfwright committed Nov 5, 2023
1 parent eaffd9d commit da04b2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ scope "/" do
end
```

Finally, tell LiveAdmin what Ecto repo to use to run queries in your `runtime.ex`: `config :live_admin, ecto_repo: MyApp.Repo`
Finally, tell LiveAdmin what Ecto repo to use to run queries in your `runtime.ex`:

```
config :live_admin, ecto_repo: MyApp.Repo
```

That's it, now an admin UI for `MyApp.Schema` will be available at `/my_admin/my_schemas`.

Expand Down
6 changes: 5 additions & 1 deletion README.md.eex
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ scope "/" do
end
```

Finally, tell LiveAdmin what Ecto repo to use to run queries in your `runtime.ex`: `config :live_admin, ecto_repo: MyApp.Repo`
Finally, tell LiveAdmin what Ecto repo to use to run queries in your `runtime.ex`:

```
config :live_admin, ecto_repo: MyApp.Repo
```

That's it, now an admin UI for `MyApp.Schema` will be available at `/my_admin/my_schemas`.

Expand Down

0 comments on commit da04b2d

Please sign in to comment.