Files
forum/app/controllers/application_controller.rb

8 lines
234 B
Ruby
Executable File

class ApplicationController < ActionController::Base
protect_from_forgery
rescue_from CanCan::AccessDenied do |exception|
redirect_to root_url, :alert => "You don't have access to that feature. Please try again."
end
end