Hello,
I’m facing a strange bug. I have a simple action in a simple controller in a simple Rails App (Rails 1.2.3, Mongrel 1.0.1).
This action fetches some news in the Database :
def news @news = News.find(:all) end
As you can see, everything is simple.
The strange thing is that this action is called 2 times when I load the page. I have logged the HTTP_REFERER and I can see that the first time the action is called, the HTTP_REFERER is the page from which I called the news action :
HTTP_REFERER : http://192.168.254.85:3000/about-us
and the second time it is the news page itself : HTTP_REFERER : http://192.168.254.85:3000/news
I’ve googeled the problem, and what I found is maybe a Firefox bug (this problem doesn’t happen in Safari, and it do happen in Camino). The informations I found are here :
- https://bugzilla.mozilla.org/show_bug.cgi?id=61363
- https://bugzilla.mozilla.org/show_bug.cgi?id=236858
- http://forums.mozillazine.org/viewtopic.php?p=2859258#2859258
- http://www.thescripts.com/forum/thread636859.html
It says that the HTTP header must specify the same charset as the page meta-tag, which is my case.
Does someone has the same problem, or any clue to help my to solve mine?
Thanks in advance for your help.
Thomas Balthazar.