i have the problem that my child class fields aren’t validated on saving
parent. working with parent and child is fine.
if all fields are filled correctly everything is saved as expected.
but missing fields in the child arent added to the errors.
following short sample shows what i mean:
class Parent < ActiveRecord::Base
class Children < ActiveRecord::Base
@parent = session[:parent] ||= Parent.new
the absence of parent_name will be correctly shown @parent.errors
but i cant find the absence of children_name. isnt it validated?
if parent_name is set and children name is nullable in DB
everything will be saved without validating the children.
i think im missing something important at this pont.