for example , smoking on railway carriages was forbidden long after smoking became a widespread custom in society ; a gentleman who wished to enjoy a cigar was obliged to tip the railroad porter -- - another forbidden act -- - and this state of affairs continued , despite the intense pressure of public opinion , until 1868 , when parliament finally passed a law forcing the railroads to allow passengers to smoke .