Generating PDF- environment.rb problem

Ryan's podcast may help - http://railscasts.com/episodes/78