robinsp/sortable_element_for_nested_set

Plugin not working with Rails 2.3.4

Closed this issue · 2 comments

Hello Robinsp,

I'm having a trouble with your plugin. I'm using Rails 2.3.4 with AwesomeNestedSet. When I try to reorder records I got this error:

/home/sobrinho/projetos/cms/vendor/plugins/sortable_element_for_nested_set/lib/tree_calc.rb:85:in `find_array_with_target_node'
/home/sobrinho/projetos/cms/vendor/plugins/sortable_element_for_nested_set/lib/tree_calc.rb:33:in `left_of'
/home/sobrinho/projetos/cms/vendor/plugins/sortable_element_for_nested_set/lib/tree_calc.rb:28:in `placement_of'
/home/sobrinho/projetos/cms/vendor/plugins/sortable_element_for_nested_set/lib/sortable_element_for_nested_set.rb:27:in `in_tree'
/home/sobrinho/projetos/cms/app/controllers/admin/pages_controller.rb:11:in `reorder'

Can you look if your plugin is working Rails 2.3.4? I really need it :)

Best regards

Ops, the error:

NoMethodError in Admin/pagesController#reorder
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.children

Hi,
Just want to make sure I understand you correctly.
Was this a problem in your code or are you still having issues with the plugin?

/R