1

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

2 Answers 2

0

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.

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.