PRoblem using railroad

I am trying to create class diagrams of my application using railroad
but i am getting following error:
I am trying to create class diagram using railroad but getting error:

Error loading application environment.
(Are you running railroad on the aplication’s root directory?)

/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require': no such file to load -- config/environment (LoadError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:inrequire’
from /home/ubuntu/.gem/ruby/1.8/gems/railroad-0.5.0/lib/railroad/
app_diagram.rb:73:in load_environment' from /home/ubuntu/.gem/ruby/1.8/gems/railroad-0.5.0/lib/railroad/ app_diagram.rb:18:ininitialize’
from /home/ubuntu/.gem/ruby/1.8/gems/railroad-0.5.0/lib/railroad/
models_diagram.rb:14:in initialize' from /home/ubuntu/.gem/ruby/1.8/gems/railroad-0.5.0/bin/railroad: 36:innew’
from /home/ubuntu/.gem/ruby/1.8/gems/railroad-0.5.0/bin/railroad:36
from /home/ubuntu/.gem/ruby/1.8/bin/railroad:19:in `load’
from /home/ubuntu/.gem/ruby/1.8/bin/railroad:19

any clue?
any clue?

On 21 October 2010 20:31, blackbug [email protected] wrote:

I am trying to create class diagrams of my application using railroad
but i am getting following error:
I am trying to create class diagram using railroad but getting error:

Error loading application environment.
(Are you running railroad on the aplication’s root directory?)

Are you?

Colin

yes i am

On Thu, Oct 21, 2010 at 12:31 PM, blackbug [email protected]
wrote:

I am trying to create class diagram using railroad but getting error:

Error loading application environment.
(Are you running railroad on the aplication’s root directory?)

/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require’: no such file to load – config/environment
(LoadError)

That almost looks like the RAILS_ENV was nil.

What is the exact command you were trying to run?


Hassan S. ------------------------ [email protected]
twitter: @hassan

On Sat, Oct 23, 2010 at 12:09 PM, blackbug [email protected]
wrote:

i am in the application’s root directory and executing
railroad -o myDiagram.dot -M

/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require’: no such file to load – config/environment
(LoadError)

I wonder what would happen if you tried something like

RAILS_ENV=development railroad -o myDiagram.dot -M


Hassan S. ------------------------ [email protected]
twitter: @hassan

i am in the application’s root directory and executing
railroad -o myDiagram.dot -M

I tried exporting GEM_HOME and all other env variables, but no
success.

On Oct 23, 9:57pm, Hassan S. [email protected]