Shane Vitarana
2008-Jan-30 23:59 UTC
[Facebooker-talk] Publish templatized action with JSON gotcha in Rails 1.2
Hey guys- to_json in Rails 1.2 produces json with unquoted keys, which is invalid. Therefore, publish_templatized_action produces invalid json for feed publishing, and you''ll get an error from Facebook. To fix this, put this line in environment.rb: ActiveSupport::JSON.unquote_hash_key_identifiers = false You don''t need to do this if you''re running Rails 2.0. Just a heads up.. because this stumped me for a while. Shane -- http://myfitbuddy.com | http://shanesbrain.net | http://crimsonjet.com