when the subjects are the same.
if the subjects are different:
I'd rather you paid cash.
I'd rather you didn't paint it.
I prefer hot weather to cold.
= I'd rather have hot weather than cold.
= I like hot weather better than cold.
I prefer skiing to skating.
= I'd rather ski than skate.
= I like skiing better than skating.