I would suggest discreetly putting this manager in his place. Before I get into this I encourage you talk directly to your manager before involving other people. Perhaps it was a mistake on his or your part, understand the situation as best you can, you do not want to look stupid and wrong.
Anyway I can guess you can call it shade (when you take subliminal shots at someone). Next time get your proof together 1st. I don't know what job you have (I am assuming retail/sales, perhaps marketing, idk tell me). When you do something, make sure others witness it, and if you don't have any witness, perhaps send an email to coworkers letting them know what you have done and showing exactly what you have done. Next if there is a staff meeting or if more than one person other than you and your boss are talking (4 is a magic #) mention your work to see what your boss will say. If he/she tries to suggest or take all the credit, casually mention that you think its funny he mentioned that because you actually worked on that and you were just talking about it or showing it to your coworker.
Don't smirk and you really have to choose your words wisely because it can go wrong fast. If the boss challenges you, turn down the challenge, you don't have to do or say anything because you got proof and you do not have to worry. Simply say, I believe you are mistaken, but if you want we can talk to (someone higher up then you and your boss are or an hr representative) privately. (Again Before I get into that I encourage you talk directly to your manager before involving other people. Perhaps it was a mistake, understand the situation as best you can, you do not want to look like an insecure idiot).
Soon/directly after that send the work/proof of what you have done to those persons (before your boss gets a chance). I also suggest talking to an hr representative or someone higher than your boss and you before all of this, so you can predict the outcome. Also by talking to someone outside, you can get support from an outside place because they will be familiar with your situation and perhaps sympathetic.
By doing all this you can shame, embarrass and outsmart your manager and without making it seem like you challenged him in anyway. After this (no matter the outcome) don't go bragging and running your mouth, move on. If it still happens perhaps you can file a complaint and leave!!! Good luck!!!!