Rails 3 remote resubmit form with dynamic fields
- by montrealmike
I have a form which has remote => true. When i submit it the first time everything works well.
If there are any errors i want to add new fields to this form. I did this with update.js.erb.
The problem is that when i resubmit this form, the result js file is rendered as html (ie i see the js file text on the screen). This is the same update.js.erb file that was rendered as js the first time...
Any idea what i'm missing?