Code Monkey home page Code Monkey logo

Comments (6)

juantascon avatar juantascon commented on August 16, 2024 2

@davidahmed in create_resources() rename benchmarks to benchmark

from kaffy.

davidahmed avatar davidahmed commented on August 16, 2024 1

Remove the resources option from Kaffy's configs.

If you meant the following, then yeah I've removed and it works. But as many_to_many association is still not supported by Kaffy, those models break the default admin panel when I open the objects of such schemas. My quick hack around was that I'd have custom form fields. But with that, the above error occurs.

  config :kaffy,
  admin_title: "MyApp Admin",
  otp_app: :my_app,
  ecto_repo: MyApp.Repo,
  router: MyAppWeb.Router,
  #resources: &MyApp.Kaffy.Config.create_resources/1 <-- commented

from kaffy.

aesmail avatar aesmail commented on August 16, 2024

Can you please do the following and see if it works:

  • Remove the resources option from Kaffy's configs.
  • Rename the BenchmarkAdmin module from MyApp.Kaffy.BenchmarkAdmin to MyApp.Benchmarks.BenchmarkAdmin

If this works, then Kaffy has a bug with explicit resources. If it doesn't work, at least we know this is not the issue and we can remove it from the list.

from kaffy.

davidahmed avatar davidahmed commented on August 16, 2024

Tried this as well

Rename the BenchmarkAdmin module from MyApp.Kaffy.BenchmarkAdmin to MyApp.Benchmarks.BenchmarkAdmin

Unfortunately, the same issue persists.

from kaffy.

marvoh avatar marvoh commented on August 16, 2024

I have the same issue as well. When I remove the resources option, nothing loads, I get the following issue on all routes instead:

no match of right hand side value: :undefined.

image

from kaffy.

somoza avatar somoza commented on August 16, 2024

Worked fine commented the resources line as @davidahmed commented. Thanks!

from kaffy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.