sudara
2008-May-15 13:48 UTC
[Facebooker-talk] facebooker, respond_to and firefox 3 beta5/pre
Hi there, I have a controller that responds to fbml and html, with html at the top. In all browsers, this works as expected - When I''m hitting the controller from my normal app, I get html. When I hit it inside facebook, I get fbml. However, with Firefox 3 hitting the normal app, I''m getting fbml for some odd reason. Am I crazy? Sudara
David Clements
2008-May-15 15:45 UTC
[Facebooker-talk] facebooker, respond_to and firefox 3 beta5/pre
Hey Sudara, I currently have this implemented for one of my apps and I don''t see this problem in Firefox 3. Can you post some code? And the pieces of the log? You don''t have caching turned on do you? Dave On Thu, May 15, 2008 at 7:48 AM, sudara <sudara at alonetone.com> wrote:> Hi there, > > I have a controller that responds to fbml and html, with html at the top. > > In all browsers, this works as expected - When I''m hitting the controller > from my normal app, I get html. When I hit it inside facebook, I get fbml. > > However, with Firefox 3 hitting the normal app, I''m getting fbml for some > odd reason. > > Am I crazy? > > Sudara > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080515/284f216e/attachment.html>
sudara
2008-May-16 19:59 UTC
[Facebooker-talk] facebooker, respond_to and firefox 3 beta5/pre
Wow, so I''m trippen out. The answer: removed: Mime::Type.register ''text/html'', :fbml added: Mime::Type.register_alias ''text/html'', :fbml Every request works as it now should. I''ve been poking around in vendor/rails/actionpack/lib/ action_controller/mime_type.rb to try and determine what the heck would make Firefox behave so uniquely. Then again, I should have register_alias''d to begin with, no? Funny thing is, it was working like a breeze until Firefox 3. Must have *something* to do with the accept headers it sends? anywho, I couldn''t find much Documentation about registering the fbml alias, but maybe we can throw a gotcha note in there. Sudara On May 16, 2008, at 8:12 PM, David Clements wrote:> I confirmed this for you. Firefox 3 returns FBML and Firefox 2 does > not. > > Dave > > On Fri, May 16, 2008 at 10:03 AM, sudara <sudara at alonetone.com> wrote: > Hey there. > > I prematurely posted. I''m still having this issue, but I unfairly > left out the small detail that I''m on Rails 2.1 RC1. > > I do not have caching enabled, and the logs look absolutely > "correct" - That is, there is no difference in incoming params > between a request coming from Safari and a request coming from > Firefox. What is different is that Firefox triggers the fbml > respond_to block. > > I''m going to investigate a bit more, just thought I would send the > message out in the case that someone else has seen this. > > And actually, this is on a live site - http://alonetone.com/sudara > is an example of a page that triggers the fbml layout in Firefox3 > > Sudara > > > On May 15, 2008, at 5:45 PM, David Clements wrote: > >> Hey Sudara, >> >> I currently have this implemented for one of my apps and I don''t >> see this problem in Firefox 3. >> >> Can you post some code? And the pieces of the log? >> >> You don''t have caching turned on do you? >> >> Dave >> >> On Thu, May 15, 2008 at 7:48 AM, sudara <sudara at alonetone.com> wrote: >> Hi there, >> >> I have a controller that responds to fbml and html, with html at >> the top. >> >> In all browsers, this works as expected - When I''m hitting the >> controller from my normal app, I get html. When I hit it inside >> facebook, I get fbml. >> >> However, with Firefox 3 hitting the normal app, I''m getting fbml >> for some odd reason. >> >> Am I crazy? >> >> Sudara >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > >
David Clements
2008-May-16 20:17 UTC
[Facebooker-talk] facebooker, respond_to and firefox 3 beta5/pre
Were you adding this yourself somwhere? Dave Sent from my iPhone On May 16, 2008, at 1:59 PM, sudara <sudara at alonetone.com> wrote:> Wow, so I''m trippen out. > > The answer: > > removed: > Mime::Type.register ''text/html'', :fbml > > added: > Mime::Type.register_alias ''text/html'', :fbml > > Every request works as it now should. > > I''ve been poking around in vendor/rails/actionpack/lib/ > action_controller/mime_type.rb to try and determine what the heck > would make Firefox behave so uniquely. > > Then again, I should have register_alias''d to begin with, no? > > Funny thing is, it was working like a breeze until Firefox 3. Must > have *something* to do with the accept headers it sends? > > anywho, I couldn''t find much Documentation about registering the > fbml alias, but maybe we can throw a gotcha note in there. > > Sudara > > On May 16, 2008, at 8:12 PM, David Clements wrote: > >> I confirmed this for you. Firefox 3 returns FBML and Firefox 2 >> does not. >> >> Dave >> >> On Fri, May 16, 2008 at 10:03 AM, sudara <sudara at alonetone.com> >> wrote: >> Hey there. >> >> I prematurely posted. I''m still having this issue, but I unfairly >> left out the small detail that I''m on Rails 2.1 RC1. >> >> I do not have caching enabled, and the logs look absolutely >> "correct" - That is, there is no difference in incoming params >> between a request coming from Safari and a request coming from >> Firefox. What is different is that Firefox triggers the fbml >> respond_to block. >> >> I''m going to investigate a bit more, just thought I would send the >> message out in the case that someone else has seen this. >> >> And actually, this is on a live site - http://alonetone.com/sudara >> is an example of a page that triggers the fbml layout in Firefox3 >> >> Sudara >> >> >> On May 15, 2008, at 5:45 PM, David Clements wrote: >> >>> Hey Sudara, >>> >>> I currently have this implemented for one of my apps and I don''t >>> see this problem in Firefox 3. >>> >>> Can you post some code? And the pieces of the log? >>> >>> You don''t have caching turned on do you? >>> >>> Dave >>> >>> On Thu, May 15, 2008 at 7:48 AM, sudara <sudara at alonetone.com> >>> wrote: >>> Hi there, >>> >>> I have a controller that responds to fbml and html, with html at >>> the top. >>> >>> In all browsers, this works as expected - When I''m hitting the >>> controller from my normal app, I get html. When I hit it inside >>> facebook, I get fbml. >>> >>> However, with Firefox 3 hitting the normal app, I''m getting fbml >>> for some odd reason. >>> >>> Am I crazy? >>> >>> Sudara >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> >> > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
sudara
2008-May-16 21:20 UTC
[Facebooker-talk] facebooker, respond_to and firefox 3 beta5/pre
I''m using respond_to and serving facebook and a normal app from the same action / controller. I added it a long time ago, but I just double checked - without explicitly adding it the format.fbml calls fail with a MimeType error. In fact, I half-assumed this would be in facebooker by now (the adding of the mime type) since following convention, it basically allows facebooker to work out of the box with respond_to I keep it safely tucked in config/initializers/mime_types.rb Sudara On May 16, 2008, at 10:49 PM, David Clements wrote:> Hmm... Weird. > > Where did you add it? I haven''t had to do anything to support both > fbml and html. Although I just use the default rendering i don''t > call respond_to > > Dave > > On May 16, 2008, at 2:34 PM, sudara wrote: > >> Yes sir. >> >> Without it, I get a Mime::Type error. >> >> Sudara >> >> On May 16, 2008, at 10:17 PM, David Clements wrote: >> >>> Were you adding this yourself somwhere? >>> >>> Dave >>> >>> Sent from my iPhone >>> >>> On May 16, 2008, at 1:59 PM, sudara <sudara at alonetone.com> wrote: >>> >>>> Wow, so I''m trippen out. >>>> >>>> The answer: >>>> >>>> removed: >>>> Mime::Type.register ''text/html'', :fbml >>>> >>>> added: >>>> Mime::Type.register_alias ''text/html'', :fbml >>>> >>>> Every request works as it now should. >>>> >>>> I''ve been poking around in vendor/rails/actionpack/lib/ >>>> action_controller/mime_type.rb to try and determine what the heck >>>> would make Firefox behave so uniquely. >>>> >>>> Then again, I should have register_alias''d to begin with, no? >>>> >>>> Funny thing is, it was working like a breeze until Firefox 3. >>>> Must have *something* to do with the accept headers it sends? >>>> >>>> anywho, I couldn''t find much Documentation about registering the >>>> fbml alias, but maybe we can throw a gotcha note in there. >>>> >>>> Sudara >>>> >>>> On May 16, 2008, at 8:12 PM, David Clements wrote: >>>> >>>>> I confirmed this for you. Firefox 3 returns FBML and Firefox 2 >>>>> does not. >>>>> >>>>> Dave >>>>> >>>>> On Fri, May 16, 2008 at 10:03 AM, sudara <sudara at alonetone.com> >>>>> wrote: >>>>> Hey there. >>>>> >>>>> I prematurely posted. I''m still having this issue, but I >>>>> unfairly left out the small detail that I''m on Rails 2.1 RC1. >>>>> >>>>> I do not have caching enabled, and the logs look absolutely >>>>> "correct" - That is, there is no difference in incoming params >>>>> between a request coming from Safari and a request coming from >>>>> Firefox. What is different is that Firefox triggers the fbml >>>>> respond_to block. >>>>> >>>>> I''m going to investigate a bit more, just thought I would send >>>>> the message out in the case that someone else has seen this. >>>>> >>>>> And actually, this is on a live site - http://alonetone.com/ >>>>> sudara is an example of a page that triggers the fbml layout in >>>>> Firefox3 >>>>> >>>>> Sudara >>>>> >>>>> >>>>> On May 15, 2008, at 5:45 PM, David Clements wrote: >>>>> >>>>>> Hey Sudara, >>>>>> >>>>>> I currently have this implemented for one of my apps and I >>>>>> don''t see this problem in Firefox 3. >>>>>> >>>>>> Can you post some code? And the pieces of the log? >>>>>> >>>>>> You don''t have caching turned on do you? >>>>>> >>>>>> Dave >>>>>> >>>>>> On Thu, May 15, 2008 at 7:48 AM, sudara <sudara at alonetone.com> >>>>>> wrote: >>>>>> Hi there, >>>>>> >>>>>> I have a controller that responds to fbml and html, with html >>>>>> at the top. >>>>>> >>>>>> In all browsers, this works as expected - When I''m hitting the >>>>>> controller from my normal app, I get html. When I hit it inside >>>>>> facebook, I get fbml. >>>>>> >>>>>> However, with Firefox 3 hitting the normal app, I''m getting >>>>>> fbml for some odd reason. >>>>>> >>>>>> Am I crazy? >>>>>> >>>>>> Sudara >>>>>> _______________________________________________ >>>>>> Facebooker-talk mailing list >>>>>> Facebooker-talk at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>>> >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >
David Clements
2008-May-16 21:32 UTC
[Facebooker-talk] facebooker, respond_to and firefox 3 beta5/pre
This is what I am saying ... I currently use facebooker without respond_to, I just name my views correctly and it works fine. apps.faceboor.com/meemcloud/privacy and www.meemcloud.com/privacy Hit the same action. I haven''t looked into the code yet to see what making this work. I am not on RC1 though. Dave On Fri, May 16, 2008 at 3:20 PM, sudara <sudara at alonetone.com> wrote:> I''m using respond_to and serving facebook and a normal app from the same > action / controller. > > I added it a long time ago, but I just double checked - without explicitly > adding it the format.fbml calls fail with a MimeType error. > > In fact, I half-assumed this would be in facebooker by now (the adding of > the mime type) since following convention, it basically allows facebooker to > work out of the box with respond_to > > I keep it safely tucked in config/initializers/mime_types.rb > > Sudara > > > > On May 16, 2008, at 10:49 PM, David Clements wrote: > > Hmm... Weird. >> >> Where did you add it? I haven''t had to do anything to support both fbml >> and html. Although I just use the default rendering i don''t call respond_to >> >> Dave >> >> On May 16, 2008, at 2:34 PM, sudara wrote: >> >> Yes sir. >>> >>> Without it, I get a Mime::Type error. >>> >>> Sudara >>> >>> On May 16, 2008, at 10:17 PM, David Clements wrote: >>> >>> Were you adding this yourself somwhere? >>>> >>>> Dave >>>> >>>> Sent from my iPhone >>>> >>>> On May 16, 2008, at 1:59 PM, sudara <sudara at alonetone.com> wrote: >>>> >>>> Wow, so I''m trippen out. >>>>> >>>>> The answer: >>>>> >>>>> removed: >>>>> Mime::Type.register ''text/html'', :fbml >>>>> >>>>> added: >>>>> Mime::Type.register_alias ''text/html'', :fbml >>>>> >>>>> Every request works as it now should. >>>>> >>>>> I''ve been poking around in >>>>> vendor/rails/actionpack/lib/action_controller/mime_type.rb to try and >>>>> determine what the heck would make Firefox behave so uniquely. >>>>> >>>>> Then again, I should have register_alias''d to begin with, no? >>>>> >>>>> Funny thing is, it was working like a breeze until Firefox 3. Must have >>>>> *something* to do with the accept headers it sends? >>>>> >>>>> anywho, I couldn''t find much Documentation about registering the fbml >>>>> alias, but maybe we can throw a gotcha note in there. >>>>> >>>>> Sudara >>>>> >>>>> On May 16, 2008, at 8:12 PM, David Clements wrote: >>>>> >>>>> I confirmed this for you. Firefox 3 returns FBML and Firefox 2 does >>>>>> not. >>>>>> >>>>>> Dave >>>>>> >>>>>> On Fri, May 16, 2008 at 10:03 AM, sudara <sudara at alonetone.com> >>>>>> wrote: >>>>>> Hey there. >>>>>> >>>>>> I prematurely posted. I''m still having this issue, but I unfairly left >>>>>> out the small detail that I''m on Rails 2.1 RC1. >>>>>> >>>>>> I do not have caching enabled, and the logs look absolutely "correct" >>>>>> - That is, there is no difference in incoming params between a request >>>>>> coming from Safari and a request coming from Firefox. What is different is >>>>>> that Firefox triggers the fbml respond_to block. >>>>>> >>>>>> I''m going to investigate a bit more, just thought I would send the >>>>>> message out in the case that someone else has seen this. >>>>>> >>>>>> And actually, this is on a live site - http://alonetone.com/sudara is >>>>>> an example of a page that triggers the fbml layout in Firefox3 >>>>>> >>>>>> Sudara >>>>>> >>>>>> >>>>>> On May 15, 2008, at 5:45 PM, David Clements wrote: >>>>>> >>>>>> Hey Sudara, >>>>>>> >>>>>>> I currently have this implemented for one of my apps and I don''t see >>>>>>> this problem in Firefox 3. >>>>>>> >>>>>>> Can you post some code? And the pieces of the log? >>>>>>> >>>>>>> You don''t have caching turned on do you? >>>>>>> >>>>>>> Dave >>>>>>> >>>>>>> On Thu, May 15, 2008 at 7:48 AM, sudara <sudara at alonetone.com> >>>>>>> wrote: >>>>>>> Hi there, >>>>>>> >>>>>>> I have a controller that responds to fbml and html, with html at the >>>>>>> top. >>>>>>> >>>>>>> In all browsers, this works as expected - When I''m hitting the >>>>>>> controller from my normal app, I get html. When I hit it inside facebook, I >>>>>>> get fbml. >>>>>>> >>>>>>> However, with Firefox 3 hitting the normal app, I''m getting fbml for >>>>>>> some odd reason. >>>>>>> >>>>>>> Am I crazy? >>>>>>> >>>>>>> Sudara >>>>>>> _______________________________________________ >>>>>>> Facebooker-talk mailing list >>>>>>> Facebooker-talk at rubyforge.org >>>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> Facebooker-talk mailing list >>>>> Facebooker-talk at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>> >>>> >>> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080516/e226c8ff/attachment-0001.html>
sudara
2008-May-16 22:04 UTC
[Facebooker-talk] facebooker, respond_to and firefox 3 beta5/pre
Wow! Facebooker sets the format based on the incoming params, saying "ok it is fbml" if it carries familiar facebook params - it makes sense that falling through the controller rails would nail the right format.erb. I like respond_to as an idiom though. I often am responding to html, js, xml, rss and facebook within the same action, preparing instance variables slightly differently for each. It seems that MimeType.register_alias is really built for these kinds of situations, where the actual mime type is the same, but we get the respond_to sugar to organize the controller. thanks for the help! I''m still miffed about the Firefox thing, but heck, it''s working now. Sudara On May 16, 2008, at 11:32 PM, David Clements wrote:> This is what I am saying ... I currently use facebooker without > respond_to, I just name my views correctly and it works fine. > > apps.faceboor.com/meemcloud/privacy > > and > > www.meemcloud.com/privacy > > Hit the same action. > > > > I haven''t looked into the code yet to see what making this work. I > am not on RC1 though. > > Dave > > > > On Fri, May 16, 2008 at 3:20 PM, sudara <sudara at alonetone.com> wrote: > I''m using respond_to and serving facebook and a normal app from the > same action / controller. > > I added it a long time ago, but I just double checked - without > explicitly adding it the format.fbml calls fail with a MimeType error. > > In fact, I half-assumed this would be in facebooker by now (the > adding of the mime type) since following convention, it basically > allows facebooker to work out of the box with respond_to > > I keep it safely tucked in config/initializers/mime_types.rb > > Sudara > > > > On May 16, 2008, at 10:49 PM, David Clements wrote: > > Hmm... Weird. > > Where did you add it? I haven''t had to do anything to support both > fbml and html. Although I just use the default rendering i don''t > call respond_to > > Dave > > On May 16, 2008, at 2:34 PM, sudara wrote: > > Yes sir. > > Without it, I get a Mime::Type error. > > Sudara > > On May 16, 2008, at 10:17 PM, David Clements wrote: > > Were you adding this yourself somwhere? > > Dave > > Sent from my iPhone > > On May 16, 2008, at 1:59 PM, sudara <sudara at alonetone.com> wrote: > > Wow, so I''m trippen out. > > The answer: > > removed: > Mime::Type.register ''text/html'', :fbml > > added: > Mime::Type.register_alias ''text/html'', :fbml > > Every request works as it now should. > > I''ve been poking around in vendor/rails/actionpack/lib/ > action_controller/mime_type.rb to try and determine what the heck > would make Firefox behave so uniquely. > > Then again, I should have register_alias''d to begin with, no? > > Funny thing is, it was working like a breeze until Firefox 3. Must > have *something* to do with the accept headers it sends? > > anywho, I couldn''t find much Documentation about registering the > fbml alias, but maybe we can throw a gotcha note in there. > > Sudara > > On May 16, 2008, at 8:12 PM, David Clements wrote: > > I confirmed this for you. Firefox 3 returns FBML and Firefox 2 does > not. > > Dave > > On Fri, May 16, 2008 at 10:03 AM, sudara <sudara at alonetone.com> wrote: > Hey there. > > I prematurely posted. I''m still having this issue, but I unfairly > left out the small detail that I''m on Rails 2.1 RC1. > > I do not have caching enabled, and the logs look absolutely > "correct" - That is, there is no difference in incoming params > between a request coming from Safari and a request coming from > Firefox. What is different is that Firefox triggers the fbml > respond_to block. > > I''m going to investigate a bit more, just thought I would send the > message out in the case that someone else has seen this. > > And actually, this is on a live site - http://alonetone.com/sudara > is an example of a page that triggers the fbml layout in Firefox3 > > Sudara > > > On May 15, 2008, at 5:45 PM, David Clements wrote: > > Hey Sudara, > > I currently have this implemented for one of my apps and I don''t see > this problem in Firefox 3. > > Can you post some code? And the pieces of the log? > > You don''t have caching turned on do you? > > Dave > > On Thu, May 15, 2008 at 7:48 AM, sudara <sudara at alonetone.com> wrote: > Hi there, > > I have a controller that responds to fbml and html, with html at the > top. > > In all browsers, this works as expected - When I''m hitting the > controller from my normal app, I get html. When I hit it inside > facebook, I get fbml. > > However, with Firefox 3 hitting the normal app, I''m getting fbml for > some odd reason. > > Am I crazy? > > Sudara > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080517/577912c7/attachment.html>
David Clements
2008-Oct-27 21:44 UTC
[Facebooker-talk] Fwd: facebooker, respond_to and firefox 3 beta5/pre
Here was a thread on this a few months ago. Dave ---------- Forwarded message ---------- From: sudara <sudara at alonetone.com> Date: Fri, May 16, 2008 at 1:59 PM Subject: Re: [Facebooker-talk] facebooker, respond_to and firefox 3 beta5/pre To: facebooker-talk at rubyforge.org Wow, so I''m trippen out. The answer: removed: Mime::Type.register ''text/html'', :fbml added: Mime::Type.register_alias ''text/html'', :fbml Every request works as it now should. I''ve been poking around in vendor/rails/actionpack/lib/action_controller/mime_type.rb to try and determine what the heck would make Firefox behave so uniquely. Then again, I should have register_alias''d to begin with, no? Funny thing is, it was working like a breeze until Firefox 3. Must have *something* to do with the accept headers it sends? anywho, I couldn''t find much Documentation about registering the fbml alias, but maybe we can throw a gotcha note in there. Sudara On May 16, 2008, at 8:12 PM, David Clements wrote: I confirmed this for you. Firefox 3 returns FBML and Firefox 2 does not.> > Dave > > On Fri, May 16, 2008 at 10:03 AM, sudara <sudara at alonetone.com> wrote: > Hey there. > > I prematurely posted. I''m still having this issue, but I unfairly left out > the small detail that I''m on Rails 2.1 RC1. > > I do not have caching enabled, and the logs look absolutely "correct" - > That is, there is no difference in incoming params between a request coming > from Safari and a request coming from Firefox. What is different is that > Firefox triggers the fbml respond_to block. > > I''m going to investigate a bit more, just thought I would send the message > out in the case that someone else has seen this. > > And actually, this is on a live site - http://alonetone.com/sudara is an > example of a page that triggers the fbml layout in Firefox3 > > Sudara > > > On May 15, 2008, at 5:45 PM, David Clements wrote: > > Hey Sudara, >> >> I currently have this implemented for one of my apps and I don''t see this >> problem in Firefox 3. >> >> Can you post some code? And the pieces of the log? >> >> You don''t have caching turned on do you? >> >> Dave >> >> On Thu, May 15, 2008 at 7:48 AM, sudara <sudara at alonetone.com> wrote: >> Hi there, >> >> I have a controller that responds to fbml and html, with html at the top. >> >> In all browsers, this works as expected - When I''m hitting the controller >> from my normal app, I get html. When I hit it inside facebook, I get fbml. >> >> However, with Firefox 3 hitting the normal app, I''m getting fbml for some >> odd reason. >> >> Am I crazy? >> >> Sudara >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > >_______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081027/848eb216/attachment.html>
Zhao Lu
2008-Oct-28 04:37 UTC
[Facebooker-talk] Fwd: facebooker, respond_to and firefox 3 beta5/pre
That was it, thanks a bunch. I''m actually using FF3.0.3. On Mon, Oct 27, 2008 at 2:44 PM, David Clements <digidigo at gmail.com> wrote:> Here was a thread on this a few months ago. > > Dave > > ---------- Forwarded message ---------- > From: sudara <sudara at alonetone.com> > Date: Fri, May 16, 2008 at 1:59 PM > Subject: Re: [Facebooker-talk] facebooker, respond_to and firefox 3 > beta5/pre > To: facebooker-talk at rubyforge.org > > > Wow, so I''m trippen out. > > The answer: > > removed: > Mime::Type.register ''text/html'', :fbml > > added: > Mime::Type.register_alias ''text/html'', :fbml > > Every request works as it now should. > > I''ve been poking around in > vendor/rails/actionpack/lib/action_controller/mime_type.rb to try and > determine what the heck would make Firefox behave so uniquely. > > Then again, I should have register_alias''d to begin with, no? > > Funny thing is, it was working like a breeze until Firefox 3. Must have > *something* to do with the accept headers it sends? > > anywho, I couldn''t find much Documentation about registering the fbml alias, > but maybe we can throw a gotcha note in there. > > Sudara > > On May 16, 2008, at 8:12 PM, David Clements wrote: > >> I confirmed this for you. Firefox 3 returns FBML and Firefox 2 does not. >> >> Dave >> >> On Fri, May 16, 2008 at 10:03 AM, sudara <sudara at alonetone.com> wrote: >> Hey there. >> >> I prematurely posted. I''m still having this issue, but I unfairly left out >> the small detail that I''m on Rails 2.1 RC1. >> >> I do not have caching enabled, and the logs look absolutely "correct" - >> That is, there is no difference in incoming params between a request coming >> from Safari and a request coming from Firefox. What is different is that >> Firefox triggers the fbml respond_to block. >> >> I''m going to investigate a bit more, just thought I would send the message >> out in the case that someone else has seen this. >> >> And actually, this is on a live site - http://alonetone.com/sudara is an >> example of a page that triggers the fbml layout in Firefox3 >> >> Sudara >> >> >> On May 15, 2008, at 5:45 PM, David Clements wrote: >> >>> Hey Sudara, >>> >>> I currently have this implemented for one of my apps and I don''t see this >>> problem in Firefox 3. >>> >>> Can you post some code? And the pieces of the log? >>> >>> You don''t have caching turned on do you? >>> >>> Dave >>> >>> On Thu, May 15, 2008 at 7:48 AM, sudara <sudara at alonetone.com> wrote: >>> Hi there, >>> >>> I have a controller that responds to fbml and html, with html at the top. >>> >>> In all browsers, this works as expected - When I''m hitting the controller >>> from my normal app, I get html. When I hit it inside facebook, I get fbml. >>> >>> However, with Firefox 3 hitting the normal app, I''m getting fbml for some >>> odd reason. >>> >>> Am I crazy? >>> >>> Sudara >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> >> > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > >-- Zhao