He did not read our rights nor ask if he can search the truck. Was my rights being violated?
He doesn't have to ask you to search if he has a reasonable suspicion to do so. The smell of weed is enough for him to search, not to mention your passenger gave up his drugs.
As for whether or not you can play innocent and blame your passenger just because he's holding it and you're not, well not always.
There are different types of possession (Personal, Constructive, Joint). If you car smells like a hotbox, it's a bit harder to argue you had no knowledge or control of the situation. You could be considered to be holding drugs in your vehicle for your own benefit, passenger, or both. Luckily, it wasn't enough for the officer to even bother.