attachment_fu + s3 + railroad tip
Written by matt on July 22nd, 2007
Here is another type for attachment_fu users.
This evening I wanted to try Railroad to generate one of my app diagram. I alreay wrote my own script generating a .dot file that I usually import in omnigraffle before exporting a pretty version for my clients. The thing is, my script is quite simple and only covers models while railroad also deals with controllers.
Wanting to check on railroad, after installing the gem I typed
railroad -o models.dot -M
and here is the 'pretty' error message I got.

No worries, Technoweenie didn't mess up, it's just that I use s3 for storage and his great plugin checks on the environment to load the proper credentials. Since railroad doesn't care about the environment, RAILS_ENV isn't set and my model diagram isn't generated.
To fix this issue, simply type:
$ railroad -o models.dot -M RAILS_ENV='development'
Comments are closed
Recent
Articles
feed- Googlecharts featured on Github (June 27th)
- About Metaprogramming speed (June 18th)
- News update (June 17th)
- Avoid using metaprogramming (seriously!) (May 4th)
- BarCamp San Diego rev.3 (April 27th)
- Freezing Rails with Git (April 16th)
- Merb tip - how to freeze a project? (April 15th)
- Rails or Merb, what's best for you? (April 10th)
- Merb tips II (April 7th)
- Merb tips I (April 4th)
- How Duplo (and I) offended people (March 20th)
- Ruby on Rails: the Duplo generation (March 16th)
- starting the migration to GitHub (March 4th)
- How to use github and submit a patch (March 3rd)
- resolving git-svn conflicts (February 29th)
Comments
feed- Scott onAjax Pagination in less than 5 minutes
- Emmanuel Oga onAbout Metaprogramming speed
- Emmanuel Oga onAbout Metaprogramming speed
- Matt Aimonetti onNews update
- Bradly Feeley onNews update
- Roberto onAjax Pagination in less than 5 minutes
- R. Elliott Mason onRails or Merb, what's best for you?
- Alain onSexy charts in less than 5 minutes
- Rob Kaufman onAvoid using metaprogramming (seriously!)
- Tim Harper onAvoid using metaprogramming (seriously!)
- Tim Harper onAvoid using metaprogramming (seriously!)
- Ken Miller onAvoid using metaprogramming (seriously!)
- Ken Miller onAvoid using metaprogramming (seriously!)
- DaveS onAvoid using metaprogramming (seriously!)
- allen onAvoid using metaprogramming (seriously!)
Archives
Archives
- June 2008 (3)
- May 2008 (1)
- April 2008 (6)
- March 2008 (4)
- February 2008 (2)
- January 2008 (2)
- December 2007 (8)
- November 2007 (5)
- October 2007 (5)
- September 2007 (6)
- August 2007 (5)
- July 2007 (11)
- June 2007 (10)
- May 2007 (7)
- April 2007 (4)
- March 2007 (3)


