engine/app/controllers/application_controller.rb

12 lines
252 B
Ruby
Raw Normal View History

class ApplicationController < ActionController::Base
2010-03-29 22:01:47 +00:00
protect_from_forgery
protected
rescue_from Exception, :with => :render_error
def render_error
render :template => "/admin/errors/500", :layout => 'admin/box', :status => 500
end
2010-03-29 22:01:47 +00:00
end