You followed what rules? I actually am an advisor to the UN High Commission On Romance And Dating Protocol, and I assure you that book was nothing but a fraud. We never, ever let anyone have a copy of the real rule book. Queen Elizabeth, Barry White and Stephen Harper have been permitted to look at the rules (Barak Obama was not), but nobody has ever been allowed to have a copy.
So you believed what you saw in a fraudulent book was the real thing, and now you drove a guy off. How very ironic! Well luckily for you, I'll offer to help you get him back. Yes, you can get him back.
First, you'll need to contact him - in person if possible. Second, you'll need to actually admit that you made the mistake of listening to dating advice from anyone other than yourself. Third, you'll need to tell him that you now realize that you should have just followed your heart all along and told him all this right from the beginning. Fourth, you'll want to tell him that you really do like him.
If he doesn't ask you out after all that, he's not worth your time anyway. If he actually gets mad because you did what you thought was right, he's nothing but a douche bag and you can wait for a real man to come into your life. You didn't do anything wrong to begin with, so you don't have to apologize for anything.
But he won't reject you, so don't worry about a thing.