Change route syntax to be rails4 compatible.

Hello,

This pull-request changes route syntax to be compatible with Rails 3 and Rails 4.

Cheers,