search for: array_of_hashes

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

2008 Mar 13
0
ActionView::TemplateError when FQL query does not return any results
...cebooker/parser.rb (revision 200) +++ vendor/plugins/facebooker/lib/facebooker/parser.rb (working copy) @@ -249,7 +249,11 @@ def self.process(data) root = element(''fql_query_response'', data) first_child = root.children.reject{|c| c.kind_of?(REXML::Text)}.first - [first_child.name, array_of_hashes(root, first_child.name)] + if first_child.nil? + [nil, array_of_hashes(root, nil)] + else + [first_child.name, array_of_hashes(root, first_child.name)] + end end end ==================================================================== ... then things seem to work well. I am sorry that I don'...
2006 Jul 14
18
ActiveRecord Love While We''re At It
I am working on and will be publicly showing ActiveRecord some love around the time of the RubyConf*MI [1] in late August. My main focus is getting AR to better handle inserts, updates and merges when working large sets of data. It can improve improve performance by 400% to 600% in preliminary benchmarks. I am coding this in a way so it can be patched to AR easily, and with that in mind