Module ActionController::Components::InstanceMethods
In: vendor/rails/actionpack/lib/action_controller/components.rb

Methods

Protected Instance methods

Renders the component specified as the response for the current method

[Source]

    # File vendor/rails/actionpack/lib/action_controller/components.rb, line 80
80:         def render_component(options) #:doc:
81:           component_logging(options) do
82:             render_for_text(component_response(options, true).body, response.headers["Status"])
83:           end
84:         end

Returns the component response as a string

[Source]

    # File vendor/rails/actionpack/lib/action_controller/components.rb, line 87
87:         def render_component_as_string(options) #:doc:
88:           component_logging(options) do
89:             response = component_response(options, false)
90: 
91:             if redirected = response.redirected_to
92:               render_component_as_string(redirected)
93:             else
94:               response.body
95:             end
96:           end
97:         end

[Validate]