nested_forms adds 2 copies and deletes the first in Rails 3.1 asset pipeline
-
15-04-2021 - |
Pregunta
Rails 3.1
Ran into some issues setting up and might have hacked the wrong solution together.
Any ideas on why...
link_to_add
is creating 2 copieslink_to_destroy
is destroying the wrong copy
Solución
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.
Otros consejos
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.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow