With cable cars, buses, planes and ships, one walks on board, so "on" is generally used, and since those modes of transportation are chacracterized by having an enclosed space, "in" is often used to specify the interior of the cabin.
They enjoy riding in(side) the bus. (specific form)
They enjoy riding on the bus. (general form)