Rails nested forms
You can use rails Nested Forms even with plain form objects.
You just need to use form.fields_for
and then declare the params name and the object for validation errors.
view
form
controller
So the bar
params will be scoped into bar_params
node, and the validations will work.