Changeset 4479
- Timestamp:
- 06/21/06 02:19:40 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/verification.rb
r4310 r4479 18 18 # 19 19 # class GlobalController < ActionController::Base 20 # # prevent the #update_settings action from being invoked unless 21 # # the 'admin_privileges' request parameter exists. 20 # # Prevent the #update_settings action from being invoked unless 21 # # the 'admin_privileges' request parameter exists. The 22 # # settings action will be redirected to in current controller 23 # # if verification fails. 22 24 # verify :params => "admin_privileges", :only => :update_post, 23 25 # :redirect_to => { :action => "settings" } 24 26 # 25 # # disallow a post from being updated if there was no information27 # # Disallow a post from being updated if there was no information 26 28 # # submitted with the post, and if there is no active post in the 27 # # session, and if there is no "note" key in the flash. 29 # # session, and if there is no "note" key in the flash. The route 30 # # named category_url will be redirected to if verification fails. 31 # 28 32 # verify :params => "post", :session => "post", "flash" => "note", 29 33 # :only => :update_post, … … 55 59 # be satisfied. 56 60 # * <tt>:redirect_to</tt>: the redirection parameters to be used when 57 # redirecting if the prerequisites cannot be satisfied. 61 # redirecting if the prerequisites cannot be satisfied. You can 62 # redirect either to named route or to the action in some controller. 58 63 # * <tt>:render</tt>: the render parameters to be used when 59 64 # the prerequisites cannot be satisfied.