Hello,
I am using Script.aculo.us helpers “drop_receiving_element” and I get
a “calling against a nil object” and a NoMethodError exception. I used
the same code un Rails 1.2.6 and it works:
the drag code is:
Code : - fold - unfold
-
drop here.
- <%= drop_receiving_element :dropHelperDIV, :hoverclass =>
‘hover’ %>
and it returns this error
NoMethodError in Chapter4#draggables
Showing chapter4/draggables.html.erb where line #21 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 #21):
Code : - fold - unfold
-
drop here.
- <%= drop_receiving_element :dropContainment, :hoverclass =>
“hover”, -
:containment => "'one'" %>
Can anyone help me solve this error?
Thanks,