# Image Tags

**URL:** <https://www.ruby-forum.com/t/image-tags/143817>\
**Category:** Rails\
**Created:** [July 23, 2008, 1:07am UTC](https://www.ruby-forum.com/t/image-tags/143817 "2008-07-23T01:07:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tICT](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8797f3/32.png) [@tICT](https://www.ruby-forum.com/u/tICT)\
**Post date:** [July 23, 2008, 1:07am UTC](https://www.ruby-forum.com/t/image-tags/143817/1 "2008-07-23T01:07:42Z")

</div>

is it possible to display ‘local’ images in the format src=“file:///E:/  
StudentWork/screenshots/AO1\_review.png” where the source is a text  
field in a table? seems like I can generate the code ok, but the image  
won’t display…

InstantRails on XP running Rails 2.0.2 and Ruby 1.8.6

code for index.html.erb is …

\<% for task in @tasks %\>

 ![]() \<%=h task.title %\> \<%=h task.description %\> \<%= link\_to 'Show', task %\> \<%= link\_to 'Edit', edit\_task\_path(task) %\> \<%= link\_to 'Destroy', task, :confirm =\> 'Are you sure?', :method =\> :delete %\> \<% end %\>

where \<%= task.path %\> is the field containing the image path

Cheers

---

<div class="post-metadata">

**Author:** ![tICT](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8797f3/32.png) [@tICT](https://www.ruby-forum.com/u/tICT)\
**Post date:** [July 23, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/image-tags/143817/2 "2008-07-23T16:55:04Z")

</div>

Having tried a basic html page in the apps’ public folder this also  
highlighted that the image does not display.

I know that the path is correct by inspecting the page using Firebug,  
which displays the image!

I can then only assume that the issue is the webserver? I’ve tried  
both Mongrel and WEBrick with the same effect.

This is a strange request I realise, but this application is for  
educational purposes where students’ work is assessed online from the  
network servers rather than uploading the work to a single web server.

Any pointers would be good! Thanks  
J
