Correct syntax error in ruby file