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
error.
drop here
<%= drop_receiving_element('dropFoo', :hoverclass => 'hover') %>
I also tried <% drop_receiving_element :dropFoo as this seems the
preferred syntax in Raymond’s AoR. Same problem, though.
Thanks,
-S.
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):
1:
drop green here
2: <%= drop_receiving_element(‘dropFoo’, :hoverclass => ‘hover’) %>
[…]