Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails 2.3 AR JSON validation errors incorrect format

#5965

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":[...

Reported by Claudio Poli · November 13th, 2010 @ 02:54 AM

State: duplicate
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Aditya Sanghi
    Aditya Sanghi
    • State changed from new to duplicate
    • Importance changed from to Low

    December 1st, 2010 @ 09:28 AM