That almost looks like the RAILS_ENV was nil.
What is the exact command you were trying to run?
I wonder what would happen if you tried something like
RAILS_ENV=development railroad -o myDiagram.dot -M
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks