rails/rails — pull request #18020 by binaryberry (2014-12-13 15:43:01+00:00)
Title: Fix handling of positional url helper arguments when format is false

There is no need to subtract one from the path_params size when there is
no format parameter because it is not present in the path_params array.

Fixes #17819.