Thomas Balthazar
2007-May-29 12:36 UTC
Firefox bug causing an action to be processed twice?
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
i''ve never experienced this in firefox. hard to say without the full code... try posting the whole controller(s) and view(s) on pastie and give us a link: http://pastie.caboo.se/ On May 29, 8:36 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thomas Balthazar
2007-May-29 13:54 UTC
Re: Firefox bug causing an action to be processed twice?
Hello, Thanks for your quick answer. Here is my controller : http://pastie.caboo.se/65621 If I put a logger.error("I was here") in my "news" action, I can see it 2 times in my log file. And here is my view : http://pastie.caboo.se/65623 Do you see something special? Thomas. On 5/29/07, jemminger <jemminger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > i''ve never experienced this in firefox. hard to say without the full > code... try posting the whole controller(s) and view(s) on pastie and > give us a link: > http://pastie.caboo.se/ > > > On May 29, 8:36 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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. > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
well, i mocked that up locally the best i could, and i only get one log message from news. do you have any plugins in firefox that might be causing this? i''m using v2.0.0.3 on WinXP On May 29, 9:54 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > > Thanks for your quick answer. > Here is my controller :http://pastie.caboo.se/65621 > > If I put a logger.error("I was here") in my "news" action, I can see it 2 > times in my log file. > > And here is my view :http://pastie.caboo.se/65623 > > Do you see something special? > Thomas. > > On 5/29/07, jemminger <jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > i''ve never experienced this in firefox. hard to say without the full > > code... try posting the whole controller(s) and view(s) on pastie and > > give us a link: > >http://pastie.caboo.se/ > > > On May 29, 8:36 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thomas Balthazar
2007-May-29 17:00 UTC
Re: Firefox bug causing an action to be processed twice?
Thanks again for your help. I use Firebug and the WeDevToolbar, but I faced the same strange problem with Camino (which uses the same rendering engine that Firefox, but without any plugin.) I''m really clueless about this problem. Thomas. On 5/29/07, jemminger <jemminger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > well, i mocked that up locally the best i could, and i only get one > log message from news. do you have any plugins in firefox that might > be causing this? i''m using v2.0.0.3 on WinXP > > > On May 29, 9:54 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello, > > > > Thanks for your quick answer. > > Here is my controller :http://pastie.caboo.se/65621 > > > > If I put a logger.error("I was here") in my "news" action, I can see it > 2 > > times in my log file. > > > > And here is my view :http://pastie.caboo.se/65623 > > > > Do you see something special? > > Thomas. > > > > On 5/29/07, jemminger <jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > i''ve never experienced this in firefox. hard to say without the full > > > code... try posting the whole controller(s) and view(s) on pastie and > > > give us a link: > > >http://pastie.caboo.se/ > > > > > On May 29, 8:36 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > 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. > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
unimatrixZxero
2007-May-30 12:57 UTC
Re: Firefox bug causing an action to be processed twice?
Could you also post your layout file? If you say it has something to do with the headers sent or content type set in the HTML then I''d like to have a look a that as well. On May 29, 7:00 pm, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks again for your help. > I use Firebug and the WeDevToolbar, but I faced the same strange problem > with Camino (which uses the same rendering engine that Firefox, but without > any plugin.) > > I''m really clueless about this problem. > Thomas. > > On 5/29/07, jemminger <jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > well, i mocked that up locally the best i could, and i only get one > > log message from news. do you have any plugins in firefox that might > > be causing this? i''m using v2.0.0.3 on WinXP > > > On May 29, 9:54 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hello, > > > > Thanks for your quick answer. > > > Here is my controller :http://pastie.caboo.se/65621 > > > > If I put a logger.error("I was here") in my "news" action, I can see it > > 2 > > > times in my log file. > > > > And here is my view :http://pastie.caboo.se/65623 > > > > Do you see something special? > > > Thomas. > > > > On 5/29/07, jemminger <jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > i''ve never experienced this in firefox. hard to say without the full > > > > code... try posting the whole controller(s) and view(s) on pastie and > > > > give us a link: > > > >http://pastie.caboo.se/ > > > > > On May 29, 8:36 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thomas Balthazar
2007-May-31 12:46 UTC
Re: Firefox bug causing an action to be processed twice?
Here it is : http://pastie.caboo.se/66482 Thanks for your help, Thomas. On 5/30/07, unimatrixZxero <unimatrixZxero-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > > Could you also post your layout file? If you say it has something to > do with the headers sent or content type set in the HTML then I''d like > to have a look a that as well. > > On May 29, 7:00 pm, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Thanks again for your help. > > I use Firebug and the WeDevToolbar, but I faced the same strange problem > > with Camino (which uses the same rendering engine that Firefox, but > without > > any plugin.) > > > > I''m really clueless about this problem. > > Thomas. > > > > On 5/29/07, jemminger <jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > well, i mocked that up locally the best i could, and i only get one > > > log message from news. do you have any plugins in firefox that might > > > be causing this? i''m using v2.0.0.3 on WinXP > > > > > On May 29, 9:54 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hello, > > > > > > Thanks for your quick answer. > > > > Here is my controller :http://pastie.caboo.se/65621 > > > > > > If I put a logger.error("I was here") in my "news" action, I can see > it > > > 2 > > > > times in my log file. > > > > > > And here is my view :http://pastie.caboo.se/65623 > > > > > > Do you see something special? > > > > Thomas. > > > > > > On 5/29/07, jemminger <jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > i''ve never experienced this in firefox. hard to say without the > full > > > > > code... try posting the whole controller(s) and view(s) on pastie > and > > > > > give us a link: > > > > >http://pastie.caboo.se/ > > > > > > > On May 29, 8:36 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > > 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. > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jason Roelofs
2007-May-31 13:05 UTC
Re: Firefox bug causing an action to be processed twice?
Wow. Could you repost that pastie or is that what the view actually is? Jason On 5/31/07, Thomas Balthazar <thomas.tmp-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Here it is : > http://pastie.caboo.se/66482 > > Thanks for your help, > Thomas. > > On 5/30/07, unimatrixZxero <unimatrixZxero-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > > Could you also post your layout file? If you say it has something to > > do with the headers sent or content type set in the HTML then I''d like > > to have a look a that as well. > > > > On May 29, 7:00 pm, "Thomas Balthazar" < thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Thanks again for your help. > > > I use Firebug and the WeDevToolbar, but I faced the same strange > > problem > > > with Camino (which uses the same rendering engine that Firefox, but > > without > > > any plugin.) > > > > > > I''m really clueless about this problem. > > > Thomas. > > > > > > On 5/29/07, jemminger <jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > > > > well, i mocked that up locally the best i could, and i only get one > > > > log message from news. do you have any plugins in firefox that > > might > > > > be causing this? i''m using v2.0.0.3 on WinXP > > > > > > > On May 29, 9:54 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hello, > > > > > > > > Thanks for your quick answer. > > > > > Here is my controller :http://pastie.caboo.se/65621 > > > > > > > > If I put a logger.error("I was here") in my "news" action, I can > > see it > > > > 2 > > > > > times in my log file. > > > > > > > > And here is my view :http://pastie.caboo.se/65623 > > > > > > > > Do you see something special? > > > > > Thomas. > > > > > > > > On 5/29/07, jemminger <jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > i''ve never experienced this in firefox. hard to say without the > > full > > > > > > code... try posting the whole controller(s) and view(s) on > > pastie and > > > > > > give us a link: > > > > > >http://pastie.caboo.se/ > > > > > > > > > On May 29, 8:36 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > > > > 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. > > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thomas Balthazar
2007-May-31 13:57 UTC
Re: Firefox bug causing an action to be processed twice?
It''s a problem with pastie. I''ve choosed Plain text instead of RHTML, and it is now displayed correctly : http://pastie.caboo.se/66482 Thomas. On 5/31/07, Jason Roelofs <jameskilton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Wow. Could you repost that pastie or is that what the view actually is? > > Jason > > On 5/31/07, Thomas Balthazar < thomas.tmp-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Here it is : > > http://pastie.caboo.se/66482 > > > > Thanks for your help, > > Thomas. > > > > On 5/30/07, unimatrixZxero <unimatrixZxero-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > > > > > Could you also post your layout file? If you say it has something to > > > do with the headers sent or content type set in the HTML then I''d like > > > to have a look a that as well. > > > > > > On May 29, 7:00 pm, "Thomas Balthazar" < thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Thanks again for your help. > > > > I use Firebug and the WeDevToolbar, but I faced the same strange > > > problem > > > > with Camino (which uses the same rendering engine that Firefox, but > > > without > > > > any plugin.) > > > > > > > > I''m really clueless about this problem. > > > > Thomas. > > > > > > > > On 5/29/07, jemminger < jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > > > > > > > > well, i mocked that up locally the best i could, and i only get > > > one > > > > > log message from news. do you have any plugins in firefox that > > > might > > > > > be causing this? i''m using v2.0.0.3 on WinXP > > > > > > > > > On May 29, 9:54 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > > wrote: > > > > > > Hello, > > > > > > > > > > Thanks for your quick answer. > > > > > > Here is my controller :http://pastie.caboo.se/65621 > > > > > > > > > > If I put a logger.error("I was here") in my "news" action, I can > > > see it > > > > > 2 > > > > > > times in my log file. > > > > > > > > > > And here is my view :http://pastie.caboo.se/65623 > > > > > > > > > > Do you see something special? > > > > > > Thomas. > > > > > > > > > > On 5/29/07, jemminger <jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > > i''ve never experienced this in firefox. hard to say without > > > the full > > > > > > > code... try posting the whole controller(s) and view(s) on > > > pastie and > > > > > > > give us a link: > > > > > > > http://pastie.caboo.se/ > > > > > > > > > > > On May 29, 8:36 am, "Thomas Balthazar" <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > wrote: > > > > > > > > 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. > > > > > > > > > > > > > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---