RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: bensie
Do you have any recommendations for handling errors using the correct content type within an API namespace? For example if you 404 by POSTing to /api/products/1 instead of using a PUT, you get the Rails HTML 404 page in the response because the route does not match. Same goes for 500 errors if they ever happen.
Would be nice to get a JSON response for all requests in the namespace.