# Render :file question

**URL:** <https://www.ruby-forum.com/t/render-file-question/52576>\
**Category:** Rails\
**Created:** [January 16, 2006, 5:55pm UTC](https://www.ruby-forum.com/t/render-file-question/52576 "2006-01-16T17:55:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkhumri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/258eb7/32.png) [@mkhumri](https://www.ruby-forum.com/u/mkhumri)\
**Post date:** [January 16, 2006, 5:55pm UTC](https://www.ruby-forum.com/t/render-file-question/52576/1 "2006-01-16T17:55:39Z")

</div>

Hi,

I have a layout xyz.rhtml. And a footer.rhtml. Both these files reside  
in app/views/layouts/.

In that layout, I am making a call like this:

```
        <%= render :file => "footer", :use_full_path => true%>

```

I have also tried:

```
        <%= render :file => "footer"%>

```

footer.rhtml is in the same directory as in xyz.rhtml.

I get this exception:

Showing /app/views/layouts/xyz.rhtml/ where line _#20_ raised:

|No rhtml, rxml, or delegate template found for footer|

Extracted source (around line _#20_):

|17:   
18:   
19:

  
20: \<%= render :file =\> “footer”, :use\_full\_path =\> true%\>  
21: 
  
22:  
23:  
|

Que 1: Why is it not finding footer.rhtml?

Que 2: footer.rhtml is like a view component, is this the best way to do  
this and place to put this file?  
(Note: I know about render :partial, question 2 is more of a design /  
code arrangement question)

Thanks,

---

<div class="post-metadata">

**Author:** ![mkhumri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/258eb7/32.png) [@mkhumri](https://www.ruby-forum.com/u/mkhumri)\
**Post date:** [January 16, 2006, 7:41pm UTC](https://www.ruby-forum.com/t/render-file-question/52576/2 "2006-01-16T19:41:11Z")

</div>

Does anyone know what I might be doing wrong ? I can provide additional  
information to solve this issue.

Thanks,

---

<div class="post-metadata">

**Author:** ![mkhumri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/258eb7/32.png) [@mkhumri](https://www.ruby-forum.com/u/mkhumri)\
**Post date:** [January 17, 2006, 1:27am UTC](https://www.ruby-forum.com/t/render-file-question/52576/3 "2006-01-17T01:27:46Z")

</div>

Hi,

I am a bit perplexed and would really like someone to shed some light on  
this issue.

I have a layout xyz.rhtml. And a footer.rhtml. Both these files reside  
in app/views/layouts/.

In that layout, I am making a call like this:

```
       <%= render :file => "footer", :use_full_path => true%>

```

I have also tried:

```
       <%= render :file => "footer"%>

```

footer.rhtml is in the same directory as in xyz.rhtml.

I get this exception:

Showing /app/views/layouts/xyz.rhtml/ where line _#20_ raised:

|No rhtml, rxml, or delegate template found for footer|

Extracted source (around line _#20_):

|17:   
18:   
19:

  
20: \<%= render :file =\> “footer”, :use\_full\_path =\> true%\>  
21: 
  
22: 23: |

Que 1: Why is it not finding footer.rhtml?

Que 2: footer.rhtml is like a view component, is this the best way to do  
this and place to put this file?  
(Note: I know about render :partial, question 2 is more of a design /  
code arrangement question)

Thanks,
