The exceptions ActiveRecord::RecordNotFound and ActionController::RoutingError 
will give a 500 status in dev and test, but 404 in production.

This means you can't easily write JS to rely on 404 responses from Ajax 
requests: it will work in production but not dev or test.

It might be sensible to have Rails still show the useful debug info for 
these exceptions in dev and test, but with a 404 status code.

What do you think?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to