Jesse Clark
2009-Jan-07 22:38 UTC
[Facebooker-talk] Facebook app as part of a larger rails app handled by one controller
Hi all, I found this thread from a while back which discusses the situation where one wants to implement a Facebooker app that is handled by one controller of a rails app: http://rubyforge.org/pipermail/facebooker-talk/2008-January/000093.html I am in this situation with my app. Is the suggested best practice to handle this still to change relative_url_root as David describes and then add a route for: map .canvas_page_base ( "#{ENV["FACEBOOK_APP_NAME"]}/:action/:id", :controller => ''facebook'' ) ? Or, has Facebooker been modified to allow this configuration without hacking relative_url_root? What is the current suggestion for handling this situation? Thanks in advance, -Jesse
Robert Bjarnason
2009-May-19 22:16 UTC
[Facebooker-talk] Facebook app as part of a larger rails app handled by one controller
Hi all, I''m as well in this situation where the url rewrite is messing up the relative urls in my other controllers/actions, in a large application. I''m currently using an old version of Facebooker on production where I hacked in a check for if fb_ parameters are present in the request - looking at the latest code this hack of mine does not seem to want to merge in nicely with all the changes since last year. I tried this now: http://rubyforge.org/pipermail/facebooker-talk/2008-January/000093.html but it does not work for me, are these instructions still valid? Any ideas? Any way to do this cleanly? Best regards, Robert Jesse Clark wrote:> Hi all, > > I found this thread from a while back which discusses the situation > where one wants to implement a Facebooker app that is handled by one > controller of a rails app: > http://rubyforge.org/pipermail/facebooker-talk/2008-January/000093.html > > I am in this situation with my app. Is the suggested best practice to > handle this still to change relative_url_root as David describes and > then add a route for: > > map.canvas_page_base( "#{ENV["FACEBOOK_APP_NAME"]}/:action/:id", > :controller => ''facebook'' ) > > ? Or, has Facebooker been modified to allow this configuration without > hacking relative_url_root? > > What is the current suggestion for handling this situation? > > Thanks in advance, > -Jesse > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >