fix search for multiple words, #505240
[opensuse:software-o-o.git] / app / controllers / application_controller.rb
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.
3
4 class ApplicationController < ActionController::Base
5
6
7   def rescue_action_in_public(exception)
8     @message = exception.message
9     if request.xhr?
10       render :template => "error", :layout => false, :status => 404
11     else
12       render :template => 'error', :layout => "application", :status => 404
13     end
14   end
15 end