2010-07-23 20:09:54 +00:00
|
|
|
class ApplicationController < ActionController::Base
|
2010-03-29 22:01:47 +00:00
|
|
|
protect_from_forgery
|
2010-07-29 10:46:13 +00:00
|
|
|
|
|
|
|
protected
|
|
|
|
|
2010-08-31 22:41:55 +00:00
|
|
|
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
|