Any idea what’s wrong with this snippet? Looks pretty simple to me.
Yet no matter what I try, the drop_receiving_element helper causes an
I also tried <% drop_receiving_element :dropFoo as this seems the
preferred syntax in Raymond’s AoR. Same problem, though.
The error message:
NoMethodError in Test#draggables2
Showing test/draggables2.html.erb where line #2 raised:
You have a nil object when you didn’t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.
Extracted source (around line #2):
2: <%= drop_receiving_element(‘dropFoo’, :hoverclass => ‘hover’) %>