I've a problem for adding images into a PDF using Prawn as pdf generator. I'm trying to add image using the following code:
def header
text "something"
image "#{Prawn::DATADIR}/images/logo_small.png"
end
But app replies to me with the following error:
uninitialized constant Prawn::DATADIR
Where is the mistake?
P.S. My app is running on Rails 3.1 & Ruby 1.9.2.