Blaming Riker going after Ro's earring on her attitude makes no sense. He went into her for that before she even said anything beyond reporting for duty. He's a jerk to anyone outside of the command clique or that he's trying to seduce really.
I always found it hilarious that 5 minutes after he rips into her for that, she's asked to attend a meeting with Troi in her catsuit, and Worf in his huge sash. Yeah, be consistent with your enforcement of the rules, or stow it.