# Require pdf failing

**URL:** <https://www.ruby-forum.com/t/require-pdf-failing/112715>\
**Category:** Engines\
**Created:** [August 22, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/require-pdf-failing/112715 "2007-08-22T14:38:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neha-rohan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Post date:** [August 22, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/require-pdf-failing/112715/1 "2007-08-22T14:38:25Z")

</div>

Hi,

We are using Rails 1.2.1 and Ruby 1.8.5

We have require ‘pdf/writer’  
require ‘pdf/simpletable’  
Earlier it was done in the controller class but now we have moved it to  
environment.rb.  
But still sometimes we get the message “pdf is not a class/module”.

This happens intermittently, sometimes very frequently and sometimes  
just 2 times out of 10 tries.

Please help.
