leapcode/leap_web — pull request #76 by azul (2013-09-02 07:00:33+00:00)
Title: Ensure json requests get json error response on failure

Normally rails sends an html page which can't be parsed by the client.