Easy way to create fixtures that use betternestedset?

Other than calculating by hand the :lft and :rgt for my fixtures for
classes that use betternestedset, is there an easier (automagic) way?

Thanks in advance,



Create your DB records in irb or some other ruby script file outside
of rails in a temporary DB (or just use your existing DB), then use
that to export the YAML from the live data.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs