Fixes rails 4 routing error

Fixes error in rails4 because `match` isn't allowed anymore for defining routes.