I'm trying to drag/sort items with a nestable_tree organized with Ancestry and encountering the error below:
Environment
Rails: 5.1.6
Ruby: 2.4.1
config:
rails_admin do
nestable_tree({
position_field: :position,
max_depth: 3
})
end
Model has t.integer :position and t.string :ancestry, with ancestry gem installed.
Error
NoMethodError in RailsAdmin::Main#nestable
Showing /.rvm/gems/ruby-2.4.1/gems/rails_admin_nestable-0.3.2/app/views/rails_admin/main/nestable.html.haml where line #11 raised:
undefined method `map' for nil:NilClass
I'm trying to drag/sort items with a nestable_tree organized with Ancestry and encountering the error below:
Environment
Rails: 5.1.6 Ruby: 2.4.1
config:
Model has
t.integer :position
andt.string :ancestry
, with ancestry gem installed.Error