Displaying 3 results from an estimated 3 matches for "child_element".
2009 Oct 06
1
[PATCH] Fix refreshing vms list This patch fix vms index view when a smart pool is not destroyed correctly.
...@ class SmartPool < Pool
if nested_pools
nested_pools.each do |pool_element|
pool = pool_element[:obj]
- if pool.hasChildren
+ if pool.hasChildren and pool_element.has_key?(:children)
if pool.name == user
pool_element[:children].each do |child_element|
child_pool = child_element[:obj]
user_pools <<[child_pool.name, child_pool.id]
end
else
- if pool_element.has_key?(:children)
- pool_element[:children].each do |child_element|
- child_pool = child_el...
2007 Jun 27
3
acts_as_tree and before_save
...raise self.parent.to_yaml
end
end
Well, you''d think that it should show element''s parent element but for
some reason it''s always blank.
Why don''t I have access to parent element here? Parent method seems to
work just fine when I actually save the thing. So child_element =
element.children.create(blahblah) and child_element.parent gives me the
parent element as it suppose to.
What am I missing here?
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...)
+25: toString!
+[type Object]
+Constructing with: (54) [type Object] (object)
+26: toString!
+[type Object]
+Constructing with: (55) [type Object] (object)
+27: toString!
+[type Object]
+undefined
+<?xml XML decl ?><!DOCTYPE doctype decl>
+
+
+<element>
+ text more text
+ <child_element attribute="value" />
+</element>
+
+Constructing with: (0) undefined (undefined)
+undefined
+<?xml XML decl ?><!DOCTYPE doctype decl>
+
+
+<element>
+ text more text
+ <child_element attribute="value" />
+</element>
+
+Constructi...