RailsCasts Pro episodes are now free!

Learn more or hide this

Kamil Politowicz's Profile

GitHub User: kpolitowicz

Comments by Kamil Politowicz

Avatar

Indeed - it may be not needed for HTML version, but definitely JSON API would benefit from having the right status code:

render json: {error: @exception.message}, status: request.path[1..-1]