Rule Number One: HAVE PATIENCE
Rule Number Two: HAVE MORE PATIENCE
I have heard many absurd ways to house train a dog from rubbing their noses in the mess to throwing something at them when they begin to "go to the bathroom". This will only cause your dog to be afraid of you and have conflict with you.