search for: facebook_config

Displaying 2 results from an estimated 2 matches for "facebook_config".

2008 Mar 20
2
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''] = FACE...
2010 Jul 28
1
Problem loading YAML files and using pluralize method in Rails3rc
Hi, I just upgraded my rails app from rails3.0.0beta4 to rails3.0.0rc and I''m having problems loading a yaml file. I have a load_config.rb in the initializers folder which loads a yaml file. The basic loading code is: FACEBOOK_CONFIG = YAML.load_file(File.join(Rails.root, ''config'', ''facebooker.yml''))[RAILS_ENV] This stopped working when I moved to rails3rc. FACEBOOK_CONFIG returns nil. Also, I have a pluralize method in one of my views, which worked right before: <%= pluralize(post.comm...