Question

Rails 3.1

Nested_forms

Ran into some issues setting up and might have hacked the wrong solution together.


Any ideas on why...

  • link_to_add is creating 2 copies
  • link_to_destroy is destroying the wrong copy
Was it helpful?

Solution

This issue was not related to Nested_forms, it was related to rake assets:precompile. I was precompiling (unnecessarily) before pushing to Heroku which left me with two copies and strange jQuery behavior.

OTHER TIPS

I was facing same issue.

I had included nested_form.js in my application layout file.

And I haven't changed my app/assets/javascripts/application.js file, it is as it is, when it was created at time of creating rails application.

When I removed entry from my application layout, problem was solved.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top