RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: rusilko
This is a great piece of knowlege, thanks!
I encountered one problem.
The dynamic form doesn't work when I added validates :question_id, presence: true to the Answer model class.
validates :question_id, presence: true
Form is not saving and returning error: Questions answers question can't be blank
This happens only in case when you try to add a new question and add a new answer to it.
Why is this happening?