Search code examples
nested-formssprocketsnested-form-forrails-3.1

nested_forms adds 2 copies and deletes the first in Rails 3.1 asset pipeline


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

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.