This project is archived and is in readonly mode.
Rails 2.3 AR JSON validation errors incorrect format
Reported by Claudio Poli | November 13th, 2010 @ 02:54 AM
A simple
format.json { render :json => @playlist.errors, :status => :unprocessable_entity }
results in:
"[["name","can't be blank"],["name","is too short (minimum is 1 characters)"]]"
I believe it should be like the XML counterpart:
"{"errors":[...
Comments and changes to this ticket
-
Aditya Sanghi December 1st, 2010 @ 09:28 AM
- State changed from new to duplicate
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>