I'm getting a 'can't convert nil into Hash' error on my link_to_add_association line, in a Rails 3.2 app.
Here's the top of the stack trace where the error is occurring:
cocoon (1.0.18) lib/cocoon/view_helpers.rb:39:in merge'
cocoon (1.0.18) lib/cocoon/view_helpers.rb:39:inblock in render_association'
cocoon (1.0.18) lib/cocoon/view_helpers.rb:39:in
link_to_remove_association works fine in the partial, and the partial for my association renders fine, but everything blows up when I try to use link_to_add_association.
Here's what the form looks like: https://gist.github.com/2332370
Yes this error was just fixed in #53. Updating to the latest version should fix this.
Incredible timing. My Saturday just got 10x's better. Thanks!
Make sure that we will not regress: when not passing locals to the pa…
…rtial, it should still work. This was reported in #54, but first fixed in #53.