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.
<div id="dropFoo" class="pink box">drop
here</div>
<%= 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: <div id="dropFoo" class="pink box">drop green
here</div>
2: <%= drop_receiving_element(''dropFoo'', :hoverclass =>
''hover'') %>
[...]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---