For anyone using both and encountering trouble with stylesheets (specifically, the paths being incorrect in production mode)... Removing facebooker solves the issue. But I bet you don''t want to do that, eh? So, simply setting ActionController::Base.asset_host = '''' also works like butter. I''m not 100% clear on why asset_host has anything to do with facebooker, or if people will in other cases NEED to use it, but this solved it for me. After reading the discussion on this list, I''m still a bit confused about the various constants and configs and which are important and which are not in theory. In reality (revision 160), this worked great for me (in tandem with using facebooker.yml). I''m finally up and running (after having major issues with rFacebook and routes, brain farts with the concepts behind facebooker, and the hidden rules of the facebook API itself) and have a nice little (actually, lengthly) tutorial to get folks started. I''m formatting this and will post to the group in the next day or two!) Thanks to Mike for being patient and responsive Sudara
I''ve already commented out the asset_host line in the Facebooker config stuff, and it works fine. Shawn On Thu, 31 Jan 2008 19:16:16 +0100, sudara wrote:> For anyone using both and encountering trouble with stylesheets > (specifically, the paths being incorrect in production mode)... > > Removing facebooker solves the issue. > > But I bet you don''t want to do that, eh? So, simply setting > > ActionController::Base.asset_host = '''' > > also works like butter. > > I''m not 100% clear on why asset_host has anything to do with > facebooker, or if people will in other cases NEED to use it, but this > solved it for me. After reading the discussion on this list, I''m still > a bit confused about the various constants and configs and which are > important and which are not in theory. In reality (revision 160), this > worked great for me (in tandem with using facebooker.yml). > > I''m finally up and running (after having major issues with rFacebook > and routes, brain farts with the concepts behind facebooker, and the > hidden rules of the facebook API itself) and have a nice little > (actually, lengthly) tutorial to get folks started. I''m formatting > this and will post to the group in the next day or two!) > > Thanks to Mike for being patient and responsive > Sudara > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
The ActionController::Base.asset_host parameter is used by Rails to decide where to load images and such from. It is intended to allow you to spread assets out over multiple machines. It is used by Facebooker to load images from your machine instead of through the apps.facebook.com host. Unfortunately, they want to serve stylesheets. We should be able to patch stylesheet_link_tag to fix this Shawn, do images work for you with that line commented out? Mike On Jan 31, 2008, at 12:16 PM, sudara wrote:> For anyone using both and encountering trouble with stylesheets > (specifically, the paths being incorrect in production mode)... > > Removing facebooker solves the issue. > > But I bet you don''t want to do that, eh? So, simply setting > > ActionController::Base.asset_host = '''' > > also works like butter. > > I''m not 100% clear on why asset_host has anything to do with > facebooker, or if people will in other cases NEED to use it, but this > solved it for me. After reading the discussion on this list, I''m still > a bit confused about the various constants and configs and which are > important and which are not in theory. In reality (revision 160), this > worked great for me (in tandem with using facebooker.yml). > > I''m finally up and running (after having major issues with rFacebook > and routes, brain farts with the concepts behind facebooker, and the > hidden rules of the facebook API itself) and have a nice little > (actually, lengthly) tutorial to get folks started. I''m formatting > this and will post to the group in the next day or two!) > > Thanks to Mike for being patient and responsive > Sudara > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Hi Mike, Since commenting that line out, I''ve been using absolute URLs to get to images. Any suggestions/fixes are welcome. :) Shawn On Thu, 31 Jan 2008 14:25:31 -0600, Mike Mangino wrote:> The ActionController::Base.asset_host parameter is used by Rails to > decide where to load images and such from. It is intended to allow > you to spread assets out over multiple machines. > > It is used by Facebooker to load images from your machine instead of > through the apps.facebook.com host. Unfortunately, they want to serve > stylesheets. We should be able to patch stylesheet_link_tag to fix > this > > Shawn, do images work for you with that line commented out? > > Mike > On Jan 31, 2008, at 12:16 PM, sudara wrote: > >> For anyone using both and encountering trouble with stylesheets >> (specifically, the paths being incorrect in production mode)... >> >> Removing facebooker solves the issue. >> >> But I bet you don''t want to do that, eh? So, simply setting >> >> ActionController::Base.asset_host = '''' >> >> also works like butter. >> >> I''m not 100% clear on why asset_host has anything to do with >> facebooker, or if people will in other cases NEED to use it, but this >> solved it for me. After reading the discussion on this list, I''m still >> a bit confused about the various constants and configs and which are >> important and which are not in theory. In reality (revision 160), this >> worked great for me (in tandem with using facebooker.yml). >> >> I''m finally up and running (after having major issues with rFacebook >> and routes, brain farts with the concepts behind facebooker, and the >> hidden rules of the facebook API itself) and have a nice little >> (actually, lengthly) tutorial to get folks started. I''m formatting >> this and will post to the group in the next day or two!) >> >> Thanks to Mike for being patient and responsive >> Sudara >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com >