Help with railroad

40 views
Skip to first unread message

Rodrigo Ruiz

unread,
Jun 11, 2011, 7:46:13 PM6/11/11
to rubyonra...@googlegroups.com
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).

I couldn't find any explanation on how to install it.

Thank you,
Rodrigo

Michael Pavling

unread,
Jun 11, 2011, 9:55:11 PM6/11/11
to rubyonra...@googlegroups.com
On 12/06/2011, Rodrigo Ruiz <rodrig...@gmail.com> wrote:
> Can anyone help me install railroad gem.

>
> The website is http://railroad.rubyforge.org/
> I couldn't find any explanation on how to install it.

Have you tried running the command "gem install railroad"?
What result does that give you?

Ylan

unread,
Jun 11, 2011, 10:40:50 PM6/11/11
to rubyonra...@googlegroups.com
I am happy using rails erd:

http://rails-erd.rubyforge.org/

Quaternion

unread,
Jun 12, 2011, 5:32:51 AM6/12/11
to Ruby on Rails: Talk
If needed, not only the model diagrams, use http://github.com/preston/railroady.

Rodrigo Ruiz

unread,
Jun 24, 2011, 9:00:42 PM6/24/11
to rubyonra...@googlegroups.com
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.pngit 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:in `load_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:in `initialize'
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 `<main>'


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Rodrigo Ruiz

unread,
Jun 24, 2011, 9:03:18 PM6/24/11
to rubyonra...@googlegroups.com
Ya, actually I do need a class diagram for controllers and models.
How can I use that railroady?

On Sun, Jun 12, 2011 at 11:32 AM, Quaternion <PainKille...@yandex.ru> wrote:
If needed, not only the model diagrams, use http://github.com/preston/railroady.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

Leoncio Caminha

unread,
Jun 24, 2011, 9:06:46 PM6/24/11
to rubyonra...@googlegroups.com
do you install the graphviz? is needed for generate the diagrams, linux or mac your OS?

Leoncio Caminha

unread,
Jun 24, 2011, 9:25:03 PM6/24/11
to rubyonra...@googlegroups.com
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 Ruiz escreveu:

Rodrigo Ruiz

unread,
Jun 27, 2011, 3:33:46 PM6/27/11
to rubyonra...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages