File: //usr/local/rvm/gems/default/doc/actionpack-6.1.4.1/ri/ActionController/Renderer/cdesc-Renderer.ri
U:RDoc::NormalClass[iI"
Renderer:ETI"ActionController::Renderer;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"IActionController::Renderer allows you to render arbitrary templates ;TI"8without requirement of being in controller actions.;To:RDoc::Markup::BlankLine o; ;[I"TYou get a concrete renderer class by invoking ActionController::Base#renderer. ;TI"For example:;T@o:RDoc::Markup::Verbatim;[I"$ApplicationController.renderer
;T:@format0o; ;[I"3It allows you to call method #render directly.;T@o;;[I";ApplicationController.renderer.render template: '...'
;T;0o; ;[I"PYou can use this shortcut in a controller, instead of the previous example:;T@o;;[I"2ApplicationController.render template: '...'
;T;0o; ;[I"a#render allows you to use the same options that you can use when rendering in a controller. ;TI"For example:;T@o;;[I"EFooController.render :action, locals: { ... }, assigns: { ... }
;T;0o; ;[I"UThe template will be rendered in a Rack environment which is accessible through ;TI"CActionController::Renderer#env. You can set it up in two ways:;T@o:RDoc::Markup::List:
@type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o; ;[I"(by changing renderer defaults, like;T@o;;[I"UApplicationController.renderer.defaults # => hash with default Rack environment
;T;0o;;0;[o; ;[I"Pby initializing an instance of renderer by passing it a custom environment.;T@o;;[I"DApplicationController.renderer.new(method: 'post', https: true);T;0:
@fileI"&lib/action_controller/renderer.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[
I"controller;TI"R;T:publicFI"&lib/action_controller/renderer.rb;T[
I"
defaults;T@G;F@H[U:RDoc::Constant[i I"
DEFAULTS;TI")ActionController::Renderer::DEFAULTS;T;0o;;[ ;@C;0@C@cRDoc::NormalClass0U;[i I"RACK_KEY_TRANSLATION;TI"5ActionController::Renderer::RACK_KEY_TRANSLATION;T;0o;;[ ;@C;0@C@@R0[ [[I"
class;T[[;[[I"for;T@H[I"new;T@H[:protected[ [:private[ [I"
instance;T[[;[ [I"new;T@H[I"render;T@H[I"render_to_string;T@H[I"with_defaults;T@H[;[ [;[[I"normalize_keys;T@H[I"rack_key_for;T@H[I"rack_value_for;T@H[ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@CI"ActionController;TcRDoc::NormalModule