gpt4 book ai didi

ruby-on-rails - RailRoad无法正常工作。给我一些问题,即/railroad-0.5.0/lib/railroad/app_diagram.rb :54:in `disable_stdout' : uninitialized constant

转载 作者:行者123 更新时间:2023-12-04 03:05:17 25 4
gpt4 key购买 nike

这是各种输出

railroad -M | dot -Tsvg > models.svg
/Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:54:in `disable_stdout': uninitialized constant AppDiagram::PLATFORM (NameError)
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:72:in `load_environment'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:18:in `initialize'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/models_diagram.rb:14:in `initialize'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/bin/railroad:36:in `new'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/bin/railroad:36:in `<top (required)>'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/bin/railroad:19:in `load'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/bin/railroad:19:in `<main>'

版本号
me$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
me$ rvm -v
rvm 1.8.0 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]

me$ rails -v
Rails 3.0.10

Every command给了我同样的问题:
  • 铁路-o models.dot -M
  • 铁路-a -i -o full_models.dot -M
  • 铁路-M |点-Tsvg> models.svg
  • 铁路-C | neato -Tpng> controllers.png
  • 最佳答案

    铁路不适用于 ruby 1.9.2和Rails 3.0.10。 Railroady是高级维护的版本。

    关于ruby-on-rails - RailRoad无法正常工作。给我一些问题,即/railroad-0.5.0/lib/railroad/app_diagram.rb :54:in `disable_stdout' : uninitialized constant,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7624457/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com