I am using Carrierwave to upload images in rails4.
In the view page the uploaded image is showing. But, when generating the
pdf,
from this view, the image is not showing.Instead , a blank box is
showing.from many from frorums i got a suggestion that use the absolute
url to display images in pdf
From the view, while inspecting the path is showing as below:
<img alt="Small images" src=" http://127.0.0.1:3000/upload_
files/6/student/image/1/small_images.jpg">
The code i used is:
<%=image_tag Student.find(id).image_url(:small) %>
Can u pls help...
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a6f92a3f7abaf0776b8535b53b4997ab%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment