My little guy is 7 months, too, and I've never had a dog before.
Here's how I did it:
Get a crate if you don't have one. It's really the easiest way. Get your dog to go into the crate on his own by throwing treats in there and leaving the door open. After a few days toss a Kong in there, or a treat that will keep the dog occupied and close the door. Open the door after awhile, but not while barking or whining. Only when quiet. Again, only open the door when the dog is quiet, even if for a few seconds.
Now for the big one -- Take the dog for a walk before bed, and put the dog in the crate for the night. At that age they should be able to hold it about 8 hours at night. Immedietly take the dog outside in the morning and praise, praise, praise when he does anything.
Take her out about every hour or two, and after meals, and praise, praise, praise with treats. If you have to go out, or you can't keep an eye on her, back in the crate. If he makes a mistake do not scold her. If you catch her in the act back outside immediately. Try to use a command like "Go Potty."
It took me about two weeks, and now he usually sits at the door and whines and once he even brought me his leash. Yes, we have accidents, but they are few and far between, and he can now sleep in bed with me again.
Good luck. I hope this helps, and it does take a lot of effort but it's worth it. BTW, don't expect perfect, so hang on to that bottle of Natures Miracle.
