-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"No entities found; create your models first!" #6
Comments
Thank you for reporting this. Rails ERD eager loads your Rails application's environment. It relies on Rails to do this properly. There might be something off with the configuration. Could you please try the following? In your Rails app, type "rails console" to start an interactive Rails session. Now enter "Rails.application.config.eager_load_paths". This should return the paths that are automatically loaded by Rails, and therefore by Rails ERD. Could you post these paths? |
Here are the results:
|
Hey, first of all, thanks for rails-erd, I find the diagrams really useful! I have the same problemas the OP, but it used to work fine for me. Loading application environment... I did some git bisect magic to find the commit that broke the functionality and it turns out that the problem seems to be a conflict with the 'kaminari" gem. As soon as I add "gem Kaminari" to my Gemfile, rake erd doesn't find any models. Here is a link to the gem in question: I hope this helps! |
Thanks! That did the trick. I had that gem bundled but without it |
Any idea on how to have my cake and eat it too? I want kaminari, but I also want rails-erd! |
Thank you for your detective work! It turns out this is a problem with Kaminari. I have opened a pull request (https://github.com/amatsuda/kaminari/pull/34); let's hope it gets merged quickly. I will keep this issue open until a fixed version of Kaminari is released, in case other people come across the same problem. |
Kaminari has been fixed as of version 0.10.4! It should now play nice with Rails ERD and other gems that depend on Thank you both for reporting this problem and your help in solving it! |
Thanks for fixing this! |
Hey, that did the trick for me as well. Amazing turn around time rolftimmermans (and also amatsuda)! Thanks. |
I'm using
rails-erd 0.4.3
in aRails 3.0.4
app withRuby 1.8.7
and when I runrake erd
orrake erd filetype=dot
in the Rails root directory I get the following error:It says I have 0 models but running
ls -1 app/models/ | wc -l
gives me a result of 48.The text was updated successfully, but these errors were encountered: