speartail / RailRoad

Ruby on Rails diagrams generator - this repository contains the patches that allows it to be used with rails 2.3
http://wiki.github.com/peterhoeg/RailRoad
Other
75 stars 177 forks source link

probleme with railroad #6

Closed AW-HTK closed 13 years ago

AW-HTK commented 13 years ago

hi i want generate uml diagram of Diaspora. but when i run : railroad -b models.dot -C in Diaspora application root folder i ahve this error:

Error loading controller classes. (Are you running railroad on the aplication's root directory?)

/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in require': no such file to load -- app/controllers/application.rb (LoadError) from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:inrequire' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in load_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:innew_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in load_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:inrequire' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/lib/railroad/controllers_diagram.rb:39:in load_classes' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:21:ininitialize' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/lib/railroad/controllers_diagram.rb:14:in initialize' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/bin/railroad:38:innew' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/bin/railroad:38 from /usr/bin/railroad:19:in `load' from /usr/bin/railroad:19 please,help me,i really need to do it. thanks

AW-HTK commented 13 years ago

i fix it, i just make a raname of application_controller.rb to application.rb and its ok. but for generaat model i have another probleme:

delmed@ubuntu:~/servadmin$ railroad -M ./app/models/jobs/http_post.rb:9: warning: already initialized constant NUM_TRIES ./app/models/jobs/http_multi.rb:11: warning: already initialized constant MAX_RETRIES ./app/models/jobs/http_multi.rb:12: warning: already initialized constant OPTS ./app/models/services/facebook.rb:2: warning: already initialized constant MAX_CHARACTERS ./app/models/services/twitter.rb:2: warning: already initialized constant MAX_CHARACTERS /home/delmed/.bundler/ruby/1.8/roxml-7ea9a9ffd233/lib/roxml.rb:447:in xml_attr': Accessor guid is already defined as XML accessor in class Post (RuntimeError) from /usr/lib/ruby/gems/1.8/gems/simple_oauth-0.1.4/lib/simple_oauth/core_ext/object.rb:6:intap' from /home/delmed/.bundler/ruby/1.8/roxml-7ea9a9ffd233/lib/roxml.rb:445:in xml_attr' from /home/delmed/.bundler/ruby/1.8/roxml-7ea9a9ffd233/lib/roxml.rb:444:inmap' from /home/delmed/.bundler/ruby/1.8/roxml-7ea9a9ffd233/lib/roxml.rb:444:in xml_attr' from /home/delmed/servadmin/lib/diaspora/guid.rb:5:inincluded' from /home/delmed/servadmin/lib/diaspora/guid.rb:3:in class_eval' from /home/delmed/servadmin/lib/diaspora/guid.rb:3:inincluded' from ./app/models/post.rb:10:in include' from ./app/models/post.rb:10 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:inrequire' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in require' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:inload_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:inload_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in require' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/lib/railroad/models_diagram.rb:40:inload_classes' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/lib/railroad/models_diagram.rb:40:in each' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/lib/railroad/models_diagram.rb:40:inload_classes' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:21:in initialize' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/lib/railroad/models_diagram.rb:14:ininitialize' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/bin/railroad:36:in new' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/bin/railroad:36 from /usr/bin/railroad:19:inload' from /usr/bin/railroad:19

so how can i fix it??

peterhoeg commented 13 years ago

railroad only support rails 2 - for rails 3 have a look at railroady http://railroady.prestonlee.com/