Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: Anatortoise
In Rails 3, if you are failing validations due to validating the parent_id in the child model when parent.new_record? and therefore parent is not yet saved, here's a solution.