fix error for rails 4 routes `You should not use the `match` method in your router without specifying an HTTP method. (RuntimeError)`