Forum: Generating PDF- environment.rb problem

42e3661ab079bfdb3cd4546cf136eb39?d=identicon&s=25 Valerie Loy (valerieloy)
on 2007-12-12 10:04


I would like to implement a PDF function into my application.
I have already installed the pdf-writer-1.1.6.

Firstly, there are several folders in this zip folder e.g. pdf, writer
Where exactly should I paste this folders to?

Secondly, I added the following codes to the environment.rb:
require 'pdf/writer'
Mime:Type.register 'application/pdf',:pdf

Where should I place these codes and the should the word "application"
be replaced with my project's name?
I am sure that there is something wrong with the codes in here as when i
restarted WEBRICK in my command prompt, some of the errors that occurred
- already initialized constant OPTIONS
-no such file to load -- transaction/simple<MissingSourceFile>

Can someone please give me a solution? Because there is no way I can
implement the codes if I cannot start my WEBrick successfully.
This is quite urgent as the deadline is drawing nearer. Please help!
Thank you very much!!!
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.