We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hotwire Turbo (formerly known as Turbolinks) requires a failed POST request to return a 422 response (unprocessable entity). Wicked currently returns a 200 (ok) response which makes it incompatible with Turbo.
422
unprocessable entity
200
ok
In the past a PR ( #267 ) was created to change the status to unprocessable entity but this was rejected in order to stick to Rails' own defaults.
These defaults in Rails have now changed to also use 422 for failed POST requests. So I'd like to request Wicked to be updated to do the same.
The existing PR seems like a good solution.
The text was updated successfully, but these errors were encountered:
Sounds good But we may need to rebase the PR.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hotwire Turbo (formerly known as Turbolinks) requires a failed POST request to return a
422
response (unprocessable entity
). Wicked currently returns a200
(ok
) response which makes it incompatible with Turbo.In the past a PR ( #267 ) was created to change the status to
unprocessable entity
but this was rejected in order to stick to Rails' own defaults.These defaults in Rails have now changed to also use
422
for failed POST requests. So I'd like to request Wicked to be updated to do the same.The existing PR seems like a good solution.
The text was updated successfully, but these errors were encountered: