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

Make ActiveResource error parsing interoperate with ActionController #4881

Merged
merged 3 commits into from
Feb 5, 2012

Conversation

al2o3cr
Copy link
Contributor

@al2o3cr al2o3cr commented Feb 4, 2012

This is a revised and expanded version of the solution in pull request #3046. I've added deprecated paths for older-style responses and updated the documentation.

To summarize the discussion, ActiveResource currently fails to correctly parse errors issued by ActionController::Responder when using the default JSON format. This patch corrects that behavior, and includes handling for both the previously documented format (an "errors" key, with an array of messages) and the previous behavior of ActionController::Responder (a hash of attributes and errors, no root key) that was corrected in #3272 for Rails 3.2.

jeremy added a commit that referenced this pull request Feb 5, 2012
Make ActiveResource error parsing interoperate with ActionController. Closes #4881.
@jeremy jeremy merged commit 681faad into rails:master Feb 5, 2012
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.

None yet

2 participants