Skip to content

Instantly share code, notes, and snippets.

@accuser
Created August 13, 2010 12:36
Show Gist options
  • Save accuser/522795 to your computer and use it in GitHub Desktop.
Save accuser/522795 to your computer and use it in GitHub Desktop.
# app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
rescue_from(ActionController::RoutingError) {
render :template => 'errors/404'
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment