[Facebooker-talk] Anyone having problems with asset_host not getting set up right?

David Clements digidigo at gmail.com
Thu Mar 20 17:59:37 EDT 2008


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 


More information about the Facebooker-talk mailing list