David Clements
2008-Mar-20 21:59 UTC
[Facebooker-talk] Anyone having problems with asset_host not getting set up right?
Hey All, I think I found a bug but I would be suprised since it would cause major problems. We setup the asset_host in init.rb with: if File.exist?(facebook_config) FACEBOOKER = YAML.load_file(facebook_config)[RAILS_ENV] ENV[''FACEBOOK_API_KEY''] = FACEBOOKER[''api_key''] ENV[''FACEBOOK_SECRET_KEY''] = FACEBOOKER[''secret_key''] ENV[''FACEBOOKER_RELATIVE_URL_ROOT''] = FACEBOOKER[''canvas_page_name''] ActionController::Base.asset_host ||= FACEBOOKER[''callback_url''] end But ActionController::Base.asset_host == "" So it never gets set -- which means stylesheets and images gon''t get pulled in from facebook. I am going to change it to : ActionController::Base.asset_host = FACEBOOKER[''callback_url''] if(ActionController::Base.asset_host.blank?) I just wanted to check with the list first in case I am missing something simple. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080320/dc0b5ddc/attachment.html
Mike Mangino
2008-Mar-21 12:06 UTC
[Facebooker-talk] Anyone having problems with asset_host not getting set up right?
I think that''s a good change. I thought I already made that, but I must not have committed it. Mike On Mar 20, 2008, at 4:59 PM, David Clements wrote:> Hey All, > > I think I found a bug but I would be suprised since it would cause > major problems. > > We setup the asset_host in init.rb with: > if File.exist?(facebook_config) > FACEBOOKER = YAML.load_file(facebook_config)[RAILS_ENV] > ENV[''FACEBOOK_API_KEY''] = FACEBOOKER[''api_key''] > ENV[''FACEBOOK_SECRET_KEY''] = FACEBOOKER[''secret_key''] > ENV[''FACEBOOKER_RELATIVE_URL_ROOT''] = FACEBOOKER[''canvas_page_name''] > ActionController::Base.asset_host ||= FACEBOOKER[''callback_url''] > end > > But ActionController::Base.asset_host == "" > > So it never gets set -- which means stylesheets and images gon''t get > pulled in from facebook. > > I am going to change it to : > ActionController::Base.asset_host = FACEBOOKER[''callback_url''] > if(ActionController::Base.asset_host.blank?) > > I just wanted to check with the list first in case I am missing > something simple. > > Dave > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
David Clements
2008-Mar-21 16:27 UTC
[Facebooker-talk] Anyone having problems with asset_host not getting set up right?
K, Done. Dave On Fri, Mar 21, 2008 at 6:06 AM, Mike Mangino <mmangino at elevatedrails.com> wrote:> I think that''s a good change. I thought I already made that, but I > must not have committed it. > > Mike > > On Mar 20, 2008, at 4:59 PM, David Clements wrote: > > Hey All, > > > > I think I found a bug but I would be suprised since it would cause > > major problems. > > > > We setup the asset_host in init.rb with: > > if File.exist?(facebook_config) > > FACEBOOKER = YAML.load_file(facebook_config)[RAILS_ENV] > > ENV[''FACEBOOK_API_KEY''] = FACEBOOKER[''api_key''] > > ENV[''FACEBOOK_SECRET_KEY''] = FACEBOOKER[''secret_key''] > > ENV[''FACEBOOKER_RELATIVE_URL_ROOT''] = FACEBOOKER[''canvas_page_name''] > > ActionController::Base.asset_host ||= FACEBOOKER[''callback_url''] > > end > > > > But ActionController::Base.asset_host == "" > > > > So it never gets set -- which means stylesheets and images gon''t get > > pulled in from facebook. > > > > I am going to change it to : > > ActionController::Base.asset_host = FACEBOOKER[''callback_url''] > > if(ActionController::Base.asset_host.blank?) > > > > I just wanted to check with the list first in case I am missing > > something simple. > > > > Dave > > > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080321/444a78e6/attachment.html