search for: first_child

Displaying 3 results from an estimated 3 matches for "first_child".

2008 Mar 13
0
ActionView::TemplateError when FQL query does not return any results
...====================================================== --- vendor/plugins/facebooker/lib/facebooker/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 =====================================...
2006 Jan 06
3
Flashing Window in Quicken
...ts to flash the caret but access is denied to the caret. Any ideas? Log dump of start of symptom: 000c: get_window_tree( handle=0x10222 ) 000c: get_window_tree() = 0 { parent=0x2021e, owner=(nil), next_sibling=0x10224, prev_sibling=0x10220, first_sibling=0x10220, last_sibling=0x1022a, first_child=(nil), las t_child=(nil) } 000c: get_atom_information( table=(nil), atom=c03a ) 000c: get_atom_information() = 0 { count=1, pinned=0, name=L"QC_button" } 000c: get_atom_information( table=(nil), atom=c03a ) 000c: get_atom_information() = 0 { count=1, pinned=0, name=L"QC_button...
2006 Jun 12
0
validates_associated -- explicitly setting collection?
Hi, I have a class (say Parent) that has many of two other classes, say FirstChild and SecondChild. These could look like this: class Parent < ActiveRecord::Base has_many :first_children, :dependent => true has_many :first_children, :dependent => true validates_associated :first_children validates_associated :second_children end class FirstChild < ActiveRecord::Base belongs_to :parent validates_format_of :birth_date, :with => /^\d{4}\/\d{2}\/\d{2}$/ end c...