Can't get drop_receiving_element to work

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

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.


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):


drop green here

2: <%= drop_receiving_element(‘dropFoo’, :hoverclass => ‘hover’) %>


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs