[Rails] Re: How can i call an image in my model
Maddy wrote in post #1072965:
> Hi folks,
>
> Am generating table vales as pdf file.I need to call my images in that
> generated file..
>
> how could i call??
>
> its is my actual image directory "/assets/images/logo.png"
I think, if I understand you correctly, you're looking for this:
----------------
text "The image will go right below this line of text."
image "#{Prawn::DATADIR}/images/pigs.jpg"
----------------
This example was extracted directly from the Prawn manual:
http://prawn.majesticseacreature.com/manual.pdf
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home