--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Verify the given actions so that if certain prerequisites are not met, the user is redirected to a different action. The <tt>options</tt> parameter is a hash consisting of the following key/value pairs:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:params</tt>:"
    body: a single key or an array of keys that must be in the <tt>params</tt> hash in order for the action(s) to be safely called.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:session</tt>:"
    body: a single key or an array of keys that must be in the <tt>session</tt> in order for the action(s) to be safely called.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:flash</tt>:"
    body: a single key or an array of keys that must be in the flash in order for the action(s) to be safely called.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:method</tt>:"
    body: "a single key or an array of keys--any one of which must match the current request method in order for the action(s) to be safely called. (The key should be a symbol: <tt>:get</tt> or <tt>:post</tt>, for example.)"
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:xhr</tt>:"
    body: true/false option to ensure that the request is coming from an Ajax call or not.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:add_flash</tt>:"
    body: a hash of name/value pairs that should be merged into the session's flash if the prerequisites cannot be satisfied.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:add_headers</tt>:"
    body: a hash of name/value pairs that should be merged into the response's headers hash if the prerequisites cannot be satisfied.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:redirect_to</tt>:"
    body: the redirection parameters to be used when redirecting if the prerequisites cannot be satisfied. You can redirect either to named route or to the action in some controller.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:render</tt>:"
    body: the render parameters to be used when the prerequisites cannot be satisfied.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:only</tt>:"
    body: only apply this verification to the actions specified in the associated array (may also be a single value).
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:except</tt>:"
    body: do not apply this verification to the actions specified in the associated array (may also be a single value).
  type: :NOTE
full_name: ActionController::Verification::ClassMethods#verify
is_singleton: false
name: verify
params: (options={})
visibility: public
