When you are in a line of traffic that is crossing a railroad track that has no signals or gates:

If you are following another vehicle at a railroad crossing, check to make sure you have enough room to get all the way across before you drive onto the tracks. You should never try to pass another vehicle as you approach or cross a railroad crossing. Always check for trains before crossing any railroad tracks.
DMV Writen Test Logo