I forgot who, but someone told me i should ask; "do you need an ear or a solution" whenever people come rant about anything. Best tips i heard in a while.
Yes, I started doing this as well with my GF. If she is describing a problem at work or whatever I ask "Do you want me to tell you how I would fix this, or do you just want me to listen?" and like 75% of the time she already knows what to do and just wants me to listen to the problem and then when she is done she feels better because she got to vent, but sometimes she really does want an answer. It works out good for both of us.