This game really started to get out of hand thanks to a simple tactical oversight. With that in mind, I would suggest just looking out for those tactics. You'd be surprised when you consider just how important tactics play in the endgame. Where I think you really became lost, however, was actually, move 26 Rb8?, which allowed white to capture C4 with check. This leaves your opponent, down an exchange, with a strong queenside majority just waiting to start rolling, while you toil with a weak d pawn. Again, look out for tactics, you would have winning safely had you continued with C5! after which white's b2 pawn quickly becomes untenable.
In addition, in the moves after that, you made your position more and more difficult by withdrawing your king from the action, after which white's queenside pawns really start to dominate. Remember: king position becomes incredibly important in the endgame, and you allowed your opponent to completely dictate that battle as well.
I was black in this game. I held up well, but my opponent blundered (I think) toward the end and I was up a rook vs. knight, with almost even pawns, but I ended up losing. How could I have played differently not to lose an endgame like that?