administrate: `has_one?' for nil:NilClass (NoMethodError)
Environments:
- ruby 2.4.2p198
- Rails 5.1.1
After a fresh install, I get this error when I run the install generator.
`association_type': undefined method `has_one?' for nil:NilClass (NoMethodError)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (6 by maintainers)
I don’t have any gems, just the new active storage!
Hey! I’m having the same issue. Any plans to merge this PR?
I commented
acts_as_taggable_on :tags
in my model while I ran the generator and it worked fine. Just uncommented the offending lines when it was done.Using
gem 'administrate', '~> 0.10.0'
For future visitors looking for the quickfix:
gem "administrate", git: "https://github.com/thoughtbot/administrate"
In my case, the cause was the new Rails 5 attribute API. Worked by commenting those while generating the dashboard.