RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: kpolitowicz
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]
+1
Indeed - it may be not needed for HTML version, but definitely JSON API would benefit from having the right status code:
+1