class DynamicErrors::ActionController::Base
Private Instance Methods
render_error(exception)
click to toggle source
# File lib/dynamic_errors.rb, line 36 def render_error(exception) # uncomment the following line and make sure that view exists for customized 500 error page render :template => "/errors/500.html.erb", :status => 500 #redirect_to :root end
render_not_found(exception)
click to toggle source
# File lib/dynamic_errors.rb, line 30 def render_not_found(exception) # uncomment the following line land make sure that view exists for customized 404 error page render :template => "/errors/404.html.erb", :status => 404 #redirect_to :root end
render_optional_error_file(status_code)
click to toggle source
# File lib/dynamic_errors.rb, line 42 def render_optional_error_file(status_code) puts "in here" status = interpret_status(status_code) render :template => "/errors/#{status[0,3]}.html.erb", :status => status, :layout => 'application.html.erb' end