Open kerrizor opened 7 years ago
Take a look at the filter
options on the Choice gem.
I'm having trouble replicating this error. I've run rake erd only='User'
in a sample rails app and successfully created a pdf file. No problems running bundle exec erd --only='User'
either.
This is due to the rake task and the CLI using different approaches to gathering options. The CLI uses the Choice gem, rake uses rake.
Please excuse my ignorance, but how would I use the CLI to create a diagram?
$ gem install rails-erd
$ erd
..will use the CLI version to generate the diagram. I've got an open issue to merge these so they use the same code path.
Another issue with using the CLI and only is that it doesn't load the application environment, whereas with rake it does load it.
right now, if you pass in a single model, it errors because it casts the value as a String instead of an Array.