Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of positional url helper arguments when format is false #18020

Merged

Conversation

binaryberry
Copy link
Contributor

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.

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 rails#17819.
pixeltrix added a commit that referenced this pull request Dec 13, 2014
…h-format-false

Fix handling of positional url helper arguments when format is false
@pixeltrix pixeltrix merged commit c709925 into rails:master Dec 13, 2014
@pixeltrix
Copy link
Contributor

@rafaelfranca @chancancode should this be backported to just 4-2-stable and left out of the 4.2.0 release - otherwise it means another RC release - it's a fairly old bug. Also what about backporting to 4-1-stable and 4-0-stable?

@chancancode
Copy link
Member

👍 on leaving it out of 4-2-0 branch. 4-1-stable I'm not sure, but I think it's fine to backport 😄

@rafaelfranca
Copy link
Member

@pixeltrix 👍 for backporting to 4-0 and 4-1-stable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

handle_positional_args does not work properly in route with format: false option
4 participants