moving :alert into redirect_to call in documentation

This commit is contained in:
Ryan Bates
2011-01-28 09:53:07 -08:00
parent 929579f03b
commit b2028c8aa7
2 changed files with 2 additions and 4 deletions

View File

@@ -294,8 +294,7 @@ module CanCan
#
# class ApplicationController < ActionController::Base
# rescue_from CanCan::AccessDenied do |exception|
# flash[:alert] = exception.message
# redirect_to root_url
# redirect_to root_url, :alert => exception.message
# end
# end
#