Forum: Ruby on Rails Wicked pdf image problem

Posted by Saravanan P (Guest)
on 2013-01-15 13:26
(Received via mailing list)
Hello Everyone,

I am using Wicked Pdf to generate pdf file.

In my model, i have method to generate pdf file.

I also need to show image in my pdf file from amazon s3.

Case 1:
  i tried using <img src="amazon/url">
  While i am running that method image not displaying, *just a small box
only appearing insteat of image*.
Case 2:
  i tried <%= image_tag(@image.avatar)%>
  While i run this, i am getting "*rake aborted!*
*undefined method `image_tag' for main:Object*"

i googled this problem but no clear answer... any help..
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.