1 # Filters added to this controller apply to all controllers in the application.
2 # Likewise, all the methods added will be available for all controllers.
4 class ApplicationController < ActionController::Base
7 def rescue_action_in_public(exception)
8 @message = exception.message
10 render :template => "error", :layout => false, :status => 404
12 render :template => 'error', :layout => "application", :status => 404