# Rails looking for partial with .erb extension instead of .html.erb

**URL:** <https://www.ruby-forum.com/t/rails-looking-for-partial-with-erb-extension-instead-of-html-erb/170000>\
**Category:** Rails\
**Created:** [June 11, 2009, 4:46am UTC](https://www.ruby-forum.com/t/rails-looking-for-partial-with-erb-extension-instead-of-html-erb/170000 "2009-06-11T04:46:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoenth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@hoenth](https://www.ruby-forum.com/u/hoenth)\
**Post date:** [June 11, 2009, 4:46am UTC](https://www.ruby-forum.com/t/rails-looking-for-partial-with-erb-extension-instead-of-html-erb/170000/1 "2009-06-11T04:46:22Z")

</div>

I recently deployed a new version of my application. Unfortunately, I  
accidentally placed a folder containing two partials in the wrong  
repository (I had copied them from another application), so when I  
deployed, they were not included. Once I discovered this, I added this  
folder and the two partials to the repository, then redeployed.

Now, however, the application continues to tell me that the view files  
are missing:

ActionView::TemplateError (Missing template dues/\_unpaid.erb in view  
path app/views:vendor/plugins/railmail/app/views) on line #12 of app/  
views/parents/show.html.erb:

Line 12 looks like this:  
\<%= render :partial =\> ‘dues/unpaid’ if !  
@parent.current\_pt\_org\_member? %\>

I have verified that the dues folder contain \_unpaid.html.erb is in  
the apps/views folder.

It appears that it is looking for a .erb file instead of a .html.erb.

I deployed with capistrano and am using Passenger. I verified that the  
correct release was being pointed to by /current and that  
Passenger had been restarted (I manually touched restart.txt a couple  
of times just to be sure).

If you have any thoughts, I would greatly appreciate the advice.

Thanks,  
Tom

---

<div class="post-metadata">

**Author:** ![hoenth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/13edae/32.png) [@hoenth](https://www.ruby-forum.com/u/hoenth)\
**Post date:** [June 11, 2009, 4:55am UTC](https://www.ruby-forum.com/t/rails-looking-for-partial-with-erb-extension-instead-of-html-erb/170000/2 "2009-06-11T04:55:08Z")

</div>

On Jun 10, 2009, at 7:45 PM, hoenth wrote:

> ActionView::TemplateError (Missing template dues/\_unpaid.erb in view  
> path app/views:vendor/plugins/railmail/app/views) on line #12 of app/  
> views/parents/show.html.erb:
> 
> Line 12 looks like this:  
> \<%= render :partial =\> ‘dues/unpaid’ if !  
> @parent.current\_pt\_org\_member? %\>
> 
> I have verified that the dues folder contain \_unpaid.html.erb is in  
> the apps/views folder.
> 
> >

Did you mean that app/views/dues/\_unpaid.html.erb exists? Otherwise  
you’ve got it in the wrong spot…
