| Module | ActionController::Components::InstanceMethods |
| In: |
vendor/rails/actionpack/lib/action_controller/components.rb
|
Renders the component specified as the response for the current method
# File vendor/rails/actionpack/lib/action_controller/components.rb, line 94
94: def render_component(options) #:doc:
95: component_logging(options) do
96: render_text(component_response(options, true).body, response.headers["Status"])
97: end
98: end
Returns the component response as a string
# File vendor/rails/actionpack/lib/action_controller/components.rb, line 101
101: def render_component_as_string(options) #:doc:
102: component_logging(options) do
103: response = component_response(options, false)
104:
105: if redirected = response.redirected_to
106: render_component_as_string(redirected)
107: else
108: response.body
109: end
110: end
111: end