Fix optional route params for Rails 2/3 transition

Syntax for optional route params are incompatible between Rails 2 and 3.
Rails 2 supports optional via :defaults, and Rails 3 via parentheses.