I''m stuck on this weird problem and hoping maybe someone has solved this before. My applications has a facebook client and a regular web client. The application renders fbml.erb or html.erb pages depending on the type of request. Things have been working correctly until I introduced application.fbml.erb. Prior to the introduction to this file, the server response to different types correctly. Now when receiving a text/html (request.format), the server response with application.fbml.erb page. To make things more confusing, this only happens in firefox (3.0.3 under os x), but not on safari. Any suggestion is appreciated. -- Zhao
Lee Mallabone
2008-Oct-28 07:44 UTC
[Facebooker-talk] loading wrong type of content in firefox
2008/10/27 Zhao Lu <zhao.lu.us at gmail.com>:> I''m stuck on this weird problem and hoping maybe someone has solved this before. > > Things have been working correctly > until I introduced application.fbml.erb. > > Prior to the introduction to this file, the server response to > different types correctly. Now when receiving a text/html > (request.format), > the server response with application.fbml.erb page.Hi Zhao, I''m not sure why this happens, but I remember having similar issues and they seemed to go away when I explicitly specified the layout in my application.rb with this line: layout ''application'' Let me know if you find the root cause though; my understanding is that the explicit reference should really be redundant. Lee. -- Lee Mallabone. Director, Crossbone Systems Ltd. http://www.crossbonesystems.com/ http://www.fonicmonkey.net/ http://CambridgeWebHeads.ning.com/