tfwright / live_admin

Low-config admin UI for Phoenix apps, built on LiveView
MIT License
260 stars 25 forks source link

live_admin route throws "invalid resource" #46

Closed giusdp closed 1 year ago

giusdp commented 1 year ago

Describe the bug

Great library! I'm using the latest version 0.8.2. I'm having a problem following the setup guide. The live_admin route in the router from the README is not working. The lib is not picking up the resource, giving me an "invalid resource" error, although it is an Ecto schema.

Using the syntax from the hex docs live_admin "/admin", resources: [MyApp.SomeEctoSchema] works instead.

To Reproduce Follow the small setup in the README in a new project

Environment:

tfwright commented 1 year ago

The config api has significantly changed in main. The correct README should be available in the official docs: https://hexdocs.pm/live_admin/readme.html

giusdp commented 1 year ago

Oh got it, thanks!