acts_as_tree and to_json or from_json

Posted by Sohan on Stack Overflow See other posts from Stack Overflow or by Sohan
Published on 2010-04-20T23:06:51Z Indexed on 2010/04/20 23:13 UTC
Read the original article Hit count: 157

Filed under:

Hello: Does anyone have a solution to convert an acts_as_tree model to json that includes all its nodes? I trued using :include=>:children, but that only goes down to one single level. Any idea how to iterate the whole tree?

© Stack Overflow or respective owner

Related posts about ruby-on-rails