The ActionController::Rescue module in Rails defines a number of exceptions that will trigger a 404 response, namely ActionController::RoutingError, ActionController::UnknownAction, and ActiveRecord::RecordNotFound. However if you trigger one of those exceptions in a controller test (Test::Unit or Rspec) then rescue and display of the 404 page will not happen and instead the exception will just be propagated. [...]
-
About the blog
This is the blog by the Ruby on Rails developers behind MyNewsdesk.com.
Read more about us →
Visit MyNewsdesk → -
Follow us on Twitter
-
Blogroll
-
Recent Posts
-
Tags
@media Analytics bit.ly design developer e-commerce gchartrb googlecharts Google Charts API google charts on rails hCard html5 i18n JSON litespeed Microformats newsdesk Operator Optimus passenger plugin plugins pluralization postgresql RDFa Rich snippets ruby Ruby on Rails Semantic web SEO Services swedish swedish_pluralize The environment tip Transformator translate twitter usability Validator XML -
Subscribe