We have a crate for each dog...one on each end of the sofa like end tables. We train them to know the crates as "jail". They love the crates. A crate is a "safe place" for a dog. They know they are safe from every evil of the world in there. There's two rules for crates. They are never let out if they are whining and they are never taken out to be scolded. They know if they make it to their crate they are safe.... of course it's fair game to shut the crate before they get there.
Our new pup didn't like the crate at first, not at all. So, we let it go for a couple of weeks. After he learned "sit, stay", I put him in and told him to sit & stay, leaving the door open. It's working! Last night for the first time "We are eating, go to jail" and both dogs toddled off to the crates and waited.