RailsCasts Pro episodes are now free!

Learn more or hide this

Tomek Rusiłko's Profile

GitHub User: rusilko

Comments by Tomek Rusiłko

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?