Fix syntax for 'else' in ruby