# Getting a blank page for uknown reason

**URL:** <https://www.ruby-forum.com/t/getting-a-blank-page-for-uknown-reason/55279>\
**Category:** Rails\
**Created:** [March 18, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/getting-a-blank-page-for-uknown-reason/55279 "2006-03-18T22:59:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![archangel77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6a8cbe/32.png) [@archangel77](https://www.ruby-forum.com/u/archangel77)\
**Post date:** [March 18, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/getting-a-blank-page-for-uknown-reason/55279/1 "2006-03-18T22:59:36Z")

</div>

I have a model that represents a Player, and within that there is a  
method that calculates wins and losses for that player based on a how  
they did in databases that are in the DB. When this calculation is over  
it is supposed to show a summary of the calculation. When testing it on  
my local machine using Webrick it works fine, but when I put it on my  
web server, after the calculation is done it goes to a blank page  
instead of the summary page. The address is correct in the browser, it  
just does not show anything. I looked in the log and it said it was  
rendering the page, but it just shows nothing. My code is not the most  
efficient in the world right now, is it because of the calculation is  
taking a long time maybe? Any ideas on this would be greatly  
appreciated.

Gabe

---

<div class="post-metadata">

**Author:** ![archangel77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6a8cbe/32.png) [@archangel77](https://www.ruby-forum.com/u/archangel77)\
**Post date:** [March 18, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/getting-a-blank-page-for-uknown-reason/55279/2 "2006-03-18T23:04:33Z")

</div>

Whenever I see somethign like that, its because I have an old session  
file  
lying around somewhere and Rails doesn’t like it. Try deleting all your  
cookies (or at least the ones associated with your production site).

---

<div class="post-metadata">

**Author:** ![archangel77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6a8cbe/32.png) [@archangel77](https://www.ruby-forum.com/u/archangel77)\
**Post date:** [March 18, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/getting-a-blank-page-for-uknown-reason/55279/3 "2006-03-18T23:04:36Z")

</div>

very general question, so here comes general answer - you may not have  
uploaded all the files properly and template really has nothing to show

Normally, you would cut down everything from your controller/template  
until  
you get to the _minimal_ code that does NOT work. This is when you find  
the  
problem.

---

<div class="post-metadata">

**Author:** ![archangel77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6a8cbe/32.png) [@archangel77](https://www.ruby-forum.com/u/archangel77)\
**Post date:** [March 18, 2006, 11:14pm UTC](https://www.ruby-forum.com/t/getting-a-blank-page-for-uknown-reason/55279/4 "2006-03-18T23:14:59Z")

</div>

Cool thanks for the help. I will try that out and see what I get.

---

<div class="post-metadata">

**Author:** ![archangel77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6a8cbe/32.png) [@archangel77](https://www.ruby-forum.com/u/archangel77)\
**Post date:** [March 18, 2006, 11:10pm UTC](https://www.ruby-forum.com/t/getting-a-blank-page-for-uknown-reason/55279/5 "2006-03-18T23:10:41Z")

</div>

rm /tmp/ruby\_sess.\*

It has to do with old objects in the session…always wondered why it’s  
impossible to get an error other than a blank screen.

---

<div class="post-metadata">

**Author:** ![archangel77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6a8cbe/32.png) [@archangel77](https://www.ruby-forum.com/u/archangel77)\
**Post date:** [March 18, 2006, 11:41pm UTC](https://www.ruby-forum.com/t/getting-a-blank-page-for-uknown-reason/55279/6 "2006-03-18T23:41:18Z")

</div>

So I just imported all of the exact same tournament files to both my  
local machine and my web server(the code is identical, it is btoh  
coming from my central svn repository). Once again on my local machine  
it worked. Before I ran it on my web server I deleted all of my session  
file from the tmp dir. This time when I ran it I tailed the  
development.log,the blank page came up before the calculation was done  
running. It came up, and I could see through the tailed file that it  
was still computing away. Eventually it finishes, and computes things  
correctly, but the page does not get changed to the summary page,  
presumably because it has already changed to the blank one.

Gabe
