a snowboarder wearing a green hat is riding along a metal railing.
A snowboarder in a green hat rides along a metal railing in a competition.
Riding rails is not always for a competition, and that was never implied in the first sentence.
A snowboarder riding a railing does not necessarily imply that he is in a competition.
The snowboarder may not necessarily be riding along the railing in any sort of competition.