rails-erd: Unable to generate ERD
I got:
rake erd
Loading application environment…
Loading code in search of Active Record models…
rake aborted!
Active Record was not loaded.
/Users/.rvm/gems/ruby-1.9.3-p125/gems/rails-erd-1.4.2/lib/rails_erd/tasks.rake:34:in block (2 levels) in <top (required)>' /Users/.rvm/gems/ruby-1.9.3-p125/bin/ruby_executable_hooks:15:in
eval’
/Users/.rvm/gems/ruby-1.9.3-p125/bin/ruby_executable_hooks:15:in `<main>’
Tasks: TOP => erd => erd:generate => erd:load_models
any idea?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 17
@dishangyijiao I’m using a project with MongoDB, without ActiveRecord.
This did not work for me.
Hello, where did you remove require: false in Gemfile?
I got the same issue with rails 5.1.3 ruby 2.4.1.
I know it’s not supposed to for efficiency, but removing require: false in Gemfile solved it for me.