Displaying 1 result from an estimated 1 matches for "left_node".
Did you mean:
get_node
2006 Jan 05
1
Fixture files for inserting tree like behavior doesn''t work
...tree like structure to will not be present at
this point. Due to this I get a foreign key constraints fails from the
database. Is there any way to solve this problem?
Here is a short example of the problem:
# Fixture file for testing Acts_as_Tree behavior
Root:
id: 1
name: root
Left_Node:
id: 2
name: left_node
parent_id: 1
Right_Node:
id: 3
name: right_node
parent_id: 1
--
Posted via http://www.ruby-forum.com/.