为 Rails 应用程序自动生成 UML 图的工具
正在寻找一个好的工具/gem,可以为现有的 Rails 应用程序自动生成漂亮的 UML 图。
(我想象这样的工具会读取 schema.rb 文件,然后扫描模型的关系)
Looking for a good tool/gem that can automatically generate a nice looking UML diagram for an existing rails application.
(Im imagining such a tool would read the schema.rb file and then scan the models for relationships)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于 Rails 3,请尝试 Railroady,它也得到了维护。
For Rails 3, try Railroady, it's maintained as well.
您可以尝试使用 Rails ERD 作为 Railroad 的替代品。它是专门为 Rails 3 维护和工作的。
You could try Rails ERD as a an alternative to Railroad. It is maintained and works specifically for Rails 3.
RubyMine 有一个工具可以做到这一点;他们称之为“模型依赖图”,但它会为您的应用程序模型生成类似 UML 的图。
如果您不想使用 RubyMine,请查看 RailRoad。它是一个独立的工具,具有类似的功能,但在我看来,RubyMine 的更漂亮。
RubyMine has a tool to do this; they call it a "model dependency diagram", but it generates a UML-like graph for your application models.
If you don't want to use RubyMine, check out RailRoad. It's a standalone tool that does similar, though RubyMine's is prettier, IMO.