File: //usr/local/rvm/gems/default/doc/actionpack-6.1.4.1/ri/ActionController/TestCase/Behavior/get-i.ri
U:RDoc::AnyMethod[iI"get:ETI"-ActionController::TestCase::Behavior#get;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"6Simulate a GET request with the given parameters.;To:RDoc::Markup::BlankLine o:RDoc::Markup::List:
@type:BULLET:@items[
o:RDoc::Markup::ListItem:@label0; [o;
; [I"-+action+: The controller action to call.;To;;0; [o;
; [I"V+params+: The hash with HTTP parameters that you want to pass. This may be +nil+.;To;;0; [o;
; [I"J+body+: The request body with a string that is appropriately encoded ;TI"R(<tt>application/x-www-form-urlencoded</tt> or <tt>multipart/form-data</tt>).;To;;0; [o;
; [I"P+session+: A hash of parameters to store in the session. This may be +nil+.;To;;0; [o;
; [I"L+flash+: A hash of parameters to store in the flash. This may be +nil+.;T@o;
; [I"LYou can also simulate POST, PATCH, PUT, DELETE, and HEAD requests with ;TI"3+post+, +patch+, +put+, +delete+, and +head+. ;TI"EExample sending parameters, session and setting a flash message:;T@o:RDoc::Markup::Verbatim; [ I"get :show,
;TI" params: { id: 7 },
;TI" session: { user_id: 1 },
;TI"2 flash: { notice: 'This is flash message' }
;T:@format0o;
; [I"MNote that the request method is not verified. The different methods are ;TI"1available to make the tests more expressive.;T:
@fileI"'lib/action_controller/test_case.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(action, **args);T@:FI"
Behavior;TcRDoc::NormalModule00