Closed AW-HTK closed 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:in
tap'
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:in
map'
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:in
included'
from /home/delmed/servadmin/lib/diaspora/guid.rb:3:in class_eval' from /home/delmed/servadmin/lib/diaspora/guid.rb:3:in
included'
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:in
require'
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:in
load_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:in
load_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:in
load_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:in
load_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:in
initialize'
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:in
load'
from /usr/bin/railroad:19
so how can i fix it??
railroad only support rails 2 - for rails 3 have a look at railroady http://railroady.prestonlee.com/
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: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/controllers_diagram.rb:39: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/controllers_diagram.rb:14:ininitialize' from /usr/lib/ruby/gems/1.8/gems/railroad-0.5.0/bin/railroad:38:in
new' 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