| 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 79
79: def render_component(options) #:doc:
80: component_logging(options) do
81: render_for_text(component_response(options, true).body, response.headers["Status"])
82: end
83: end
Returns the component response as a string
# File vendor/rails/actionpack/lib/action_controller/components.rb, line 86
86: def render_component_as_string(options) #:doc:
87: component_logging(options) do
88: response = component_response(options, false)
89:
90: if redirected = response.redirected_to
91: render_component_as_string(redirected)
92: else
93: response.body
94: end
95: end
96: end