ryanb / nested_form

Rails plugin to conveniently handle multiple models in a single form.
MIT License
1.79k stars 505 forks source link

undefined method `capture_position=' for nil:NilClass #371

Closed bcackerman closed 8 years ago

bcackerman commented 8 years ago

Receiving an error undefined method 'capture_position=' for nil:NilClass in my haml view just using the example in the ReadMe. If I remove = f.link_to_add "Add a task", :tasks the page loads with no error. Any idea why this is being caused?

Full stack trace: http://pastie.org/10767851

bcackerman commented 8 years ago

Ah, because I was rendering the inside of the form in a partial it was causing this issue.