# Question on Render :file =\> file

**URL:** <https://www.ruby-forum.com/t/question-on-render-file-file/181448>\
**Category:** Rails\
**Created:** [January 12, 2010, 5:36am UTC](https://www.ruby-forum.com/t/question-on-render-file-file/181448 "2010-01-12T05:36:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [January 12, 2010, 5:36am UTC](https://www.ruby-forum.com/t/question-on-render-file-file/181448/1 "2010-01-12T05:36:48Z")

</div>

Dear Friends,  
I use render :file method to display html file which has images in it .  
The render file method not displays a HTML file with images that’s  
exists inside public folder.  
Both my HTML files and images refereed are in the public folder only.  
Question 1: how to view that HTML file with images in it  
Question 2: why render file method is not showing the images in the  
HTML  
file and simply shows the HTML content without images

Thanks for any helps!

---

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [January 12, 2010, 10:56am UTC](https://www.ruby-forum.com/t/question-on-render-file-file/181448/2 "2010-01-12T10:56:55Z")

</div>

2010/1/12 Newb N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Dear Friends,  
> I use render :file method to display html file which has images in it .  
> The render file method not displays a HTML file with images that’s  
> exists inside public folder.  
> Both my HTML files and images refereed are in the public folder only.  
> Â Question 1: how to view that HTML file with images in it  
> Â Question 2: why render file method is not showing the images in the  
> HTML  
> Â Â Â Â Â Â Â file and simply shows the HTML content without images

Is this the same question as in the thread titled HELP ON RENDER FILE  
METHOD? If so I have posted some suggestions there. There is not  
much point asking the same question in two threads.

Colin

---

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [January 12, 2010, 5:05pm UTC](https://www.ruby-forum.com/t/question-on-render-file-file/181448/3 "2010-01-12T17:05:04Z")

</div>

On Jan 12, 4:54Â am, Colin L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is this the same question as in the thread titled HELP ON RENDER FILE  
> METHOD? Â If so I have posted some suggestions there. Â There is not  
> much point asking the same question in two threads.

Actually, it’s the same question from:

- HELP TO SHOW IMAGE
- HELP ON RENDER FILE METHOD
- NOT SOLVED - PROBLEM IN ACCESING FILE
- and this thread.

All but the first were started yesterday. Kind of annoying, really.

–Matt J.
