Revision c60df68a
Added by Marc Dequènes over 15 years ago
- ID c60df68ae2ec3cf0468c202aa078ba46afe90ec0
app/controllers/application.rb | ||
---|---|---|
|
||
rescue_from RestfulSupport::ResourceNotFound, :with => :render_404
|
||
rescue_from RestfulSupport::UnrelatedResources, :with => :render_404
|
||
rescue_from ActiveRecord::RecordNotFound, :with => :render_404
|
||
|
||
# See ActionController::RequestForgeryProtection for details
|
||
# Uncomment the :secret if you're not using the cookie session store
|
Also available in: Unified diff
[fix] display a proper error page when an object is not found