How would a broken rib be treated in the olden days?

With nothing. Rib fractures used to be treated with nothing - pain medication at most. There were other old treatments for multiple rib fractures, including the iron lung and metal "skewers" for surgically treating these injuries.