I've got the following models:
In plan.rb
has_many :tickets
and in ticket.rb
belongs_to :plan
validates_presence_of :plan_id
When executing the following code in the controller
@plan.tickets.build( ... )
@plan.save
save fails with error_message for ticket: plan can't be blank. (plan is valid.)