Skip to content

[Rails 7.2] Association named 'audits' was not found on Model; perhaps you misspelled it? #174

@w-zygmuntowicz

Description

@w-zygmuntowicz

System configuration

ruby 3.3.4 (2024-07-09 revision be1089c8ec) [x86_64-linux]
Rails 7.2.1
motor-admin 0.4.28

Description

When trying to create a new record an error appears:

image

Stack trace

I include the stacktrace in a file motor-admin.log

Steps to reproduce

  1. rails new testing_motor
  2. cd testing_motor
  3. bin/setup
  4. Append "gem 'motor-admin'" to the Gemfile
  5. bundle install
  6. Apply the quick fix from there Installation generator fails with error  #173 (comment)
  7. rails motor:install && rake db:migrate
  8. rails g model Post title:string body:text
  9. rails db:migrate
  10. rails s
  11. Visit http://localhost:3000/motor_admin/data/posts
  12. Try to create a new post

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions