Aug 13, 2014 - 4:57 PM
I've come across a few that didn't a few years ago (I think it was in the Valais), but normally all stations, including the tiny ones without staff, have a ticketing machine. Should you ever not be able to get a ticket, just go to the conductor as soon as you have boarded the train.