Closed joelcdoyle closed 9 years ago
I'm having an issue when my object is something like @families and I want to create a node using the singular version, @family:
collection @families, object_root: false attributes *Family.column_names node(:members){ |family| family.members }
Results in:
> undefined method 'key?' for # 1 collection @families, object_root: false > 2 attributes *Family.column_names 3 node(:members){ |family| family.members }
I have other templates that are similar that work find:
collection @cameras, object_root: false attributes *Camera.column_names node(:obscure_id){ |camera| camera.obscure_id } node(:viewable_times){ |camera| camera.viewable_times }
This was not a pluralization issue, but an issue on my part for not realizing that family.members returns a relationship.
family.members
I'm having an issue when my object is something like @families and I want to create a node using the singular version, @family:
Results in:
I have other templates that are similar that work find: