Rails 4 support - #match requires a :via option to be set