Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4479

Show
Ignore:
Timestamp:
06/21/06 02:19:40 (2 years ago)
Author:
rick
Message:

documentation fixes for ActionController::Verification::ClassMethods verify method. Closes #4310. [oleg.frolov@gmail.com]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/verification.rb

    r4310 r4479  
    1818    # 
    1919    #   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. 
    2224    #     verify :params => "admin_privileges", :only => :update_post, 
    2325    #            :redirect_to => { :action => "settings" } 
    2426    # 
    25     #     # disallow a post from being updated if there was no information 
     27    #     # Disallow a post from being updated if there was no information 
    2628    #     # 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    # 
    2832    #     verify :params => "post", :session => "post", "flash" => "note", 
    2933    #            :only => :update_post, 
     
    5559      #   be satisfied. 
    5660      # * <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. 
    5863      # * <tt>:render</tt>: the render parameters to be used when 
    5964      #   the prerequisites cannot be satisfied.