Can anyone help me install railroad gem?
What I need is a simple class diagram of my rails website. Not
necessarily
with railroad (if you know any other software, for mac, that works).
other mode for generate models in rails is http://rails-erd.rubyforge.org/, very simple and require too graphviz,
much easer
Em 24/06/2011, s 22:03, Rodrigo R. escreveu:
I did manage to install it with ‘install railroad gem’, problem is that
when
I run any command like ‘railroad -a -i -M | dot -Tpng > doc/models.png’
it
doesn’t work, I get this:
/Users/rodrigoruiz/.rvm/gems/ruby-1.9.2-p180@rails3/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:54:in disable_stdout': uninitialized constant AppDiagram::PLATFORM (NameError) from /Users/rodrigoruiz/.rvm/gems/ruby-1.9.2-p180@rails3/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:72:inload_environment’
from
/Users/rodrigoruiz/.rvm/gems/ruby-1.9.2-p180@rails3/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:18:in initialize' from /Users/rodrigoruiz/.rvm/gems/ruby-1.9.2-p180@rails3/gems/railroad-0.5.0/lib/railroad/models_diagram.rb:14:ininitialize’
from
/Users/rodrigoruiz/.rvm/gems/ruby-1.9.2-p180@rails3/gems/railroad-0.5.0/bin/railroad:36:in new' from /Users/rodrigoruiz/.rvm/gems/ruby-1.9.2-p180@rails3/gems/railroad-0.5.0/bin/railroad:36:in<top (required)>’
from
/Users/rodrigoruiz/.rvm/gems/ruby-1.9.2-p180@rails3/bin/railroad:19:in load' from /Users/rodrigoruiz/.rvm/gems/ruby-1.9.2-p180@rails3/bin/railroad:19:in’
Ya, but I need both, models and controllers diagram, and yes I did
install
graphviz (manually though, not through command line)
and I did manage to generate the controllers and models with their
methods,
but not instance variable or inheritance connections.