I think that you can do everything "right" and your child could still choose a different path.
Sadly, sometimes what we feel is right, comes off as condemning and legalistic (because that's the way we end up presenting the Gospel) and actually turns our kids away from Christianity.
(Not just...