$ vim controllers/application_controller.rb
1 class ApplicationController < ActionController::Base
5
6 rescue_from CanCan::AccessDenied do |exception|
7 redirect_to '/' , :alert => exception.message
8 end
9
10 end
0 件のコメント:
コメントを投稿