Sign in through GitHub

tomek-rusilko's Profile

GitHub User: tomek-rusilko

Comments by

Avatar

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.

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?