I\'m playing with Ruby on Rails and I\'m trying to create a method with optional parameters. Apparently there are many ways to do it. I trying naming the optional parameters
Why not just use nil?
def method(required_arg, option1 = nil, option2 = nil) ... end