# Weird problem after deploy: application.html.erb does not lo

**URL:** <https://www.ruby-forum.com/t/weird-problem-after-deploy-application-html-erb-does-not-lo/173614>\
**Category:** Rails\
**Created:** [August 12, 2009, 1:54am UTC](https://www.ruby-forum.com/t/weird-problem-after-deploy-application-html-erb-does-not-lo/173614 "2009-08-12T01:54:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hirodusk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/6f9a4e/32.png) [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Post date:** [August 12, 2009, 1:54am UTC](https://www.ruby-forum.com/t/weird-problem-after-deploy-application-html-erb-does-not-lo/173614/1 "2009-08-12T01:54:44Z")

</div>

I am having a weird problem:

Just deployed an updated app to test on my server.  
For some reason it does not load my layout, but some other default  
layout, which looks like the below. I dont know where this layout is  
kept… Its for sure not in my layouts folder!  
Its weird as on my local machine it works fine… but on the server I get  
this strange behaviour. Rails version is 2.3.3.

Any clues much appreciated!

Thanks

[my app title]

Header

[my pages]

---

<div class="post-metadata">

**Author:** ![hirodusk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/6f9a4e/32.png) [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Post date:** [August 13, 2009, 12:05am UTC](https://www.ruby-forum.com/t/weird-problem-after-deploy-application-html-erb-does-not-lo/173614/2 "2009-08-13T00:05:53Z")

</div>

Anyone…?

Excuse the bump… I am just a bit baffled by this one!  
Thx

Adam W. wrote:

> I am having a weird problem:
> 
> Just deployed an updated app to test on my server.  
> For some reason it does not load my layout, but some other default  
> layout, which looks like the below. I dont know where this layout is  
> kept… Its for sure not in my layouts folder!  
> Its weird as on my local machine it works fine… but on the server I get  
> this strange behaviour. Rails version is 2.3.3.
> 
> Any clues much appreciated!
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![hirodusk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/6f9a4e/32.png) [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Post date:** [August 13, 2009, 12:47am UTC](https://www.ruby-forum.com/t/weird-problem-after-deploy-application-html-erb-does-not-lo/173614/3 "2009-08-13T00:47:31Z")

</div>

Adam W. wrote:

> Anyone…?
> 
> Excuse the bump… I am just a bit baffled by this one!  
> Thx

You couldn’t even wait 24 hours before bumping? That just makes us less  
likely to want to bother to help you. Patience, grasshopper… 🙂

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![hirodusk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/6f9a4e/32.png) [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Post date:** [August 13, 2009, 1:30am UTC](https://www.ruby-forum.com/t/weird-problem-after-deploy-application-html-erb-does-not-lo/173614/4 "2009-08-13T01:30:12Z")

</div>

OK

Just worked it out:

In my layouts folder I had an old file called application.html.erb.old -  
for some reason rails was using that instead of application.html.erb in  
the same folder.  
So I removed the old one. And then it threw an error saying it cannot  
find application.erb…

So I renamed application.html.erb to application.erb, and voila problem  
solved!

Strange huh?

I thought it was using some default layout hidden somewhere… but no it  
was right there in the layouts folder!

(Rails is v2.3.3)

---

<div class="post-metadata">

**Author:** ![hirodusk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/6f9a4e/32.png) [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Post date:** [August 13, 2009, 1:03am UTC](https://www.ruby-forum.com/t/weird-problem-after-deploy-application-html-erb-does-not-lo/173614/5 "2009-08-13T01:03:24Z")

</div>

A couple of things here.

First, it’s probably something simple. I’d make sure that your  
deployment folder layouts doesn’t contain it there. Secondly, if you  
have a file that is mapped to root, check the views in that folder for  
index to see if it’s in there. Third, have you mapped anything for root  
in routes that points to some controller/view?

As a side note, you are using multiple JS files in your layout, which  
makes more HTTP header requests. You might want to look into caching  
your javascript and css files or using the Asset Packager plugin.

My thoughts.
