Well the YAML method works with one oddity. If I don't also have a where
clause on the last table I get an error undefined method `name' for
nil:NilClass.
Say for example if I have the following YAML
buildings:
floors:
spaces:
locations:
location_materials: material
It converts to the following Hash
{"buildings"=>{"floors"=>{"spaces"=>{"locations"=>{"location_materials"=>"material"}}}}}
Which only works if I also include a .where("materials.name like '%'")
without the where clause I get the above error.
Bob
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/hobousers/-/yc67316PFWMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.