Methods
Instance Protected methods
Renders the component specified as the response for the current method
Source: show
# File rails/actionpack/lib/action_controller/components.rb, line 96 def render_component(options) #:doc: component_logging(options) do render_text(component_response(options, true).body, response.headers["Status"]) end end
Returns the component response as a string
Source: show
# File rails/actionpack/lib/action_controller/components.rb, line 103 def render_component_as_string(options) #:doc: component_logging(options) do response = component_response(options, false) if redirected = response.redirected_to render_component_as_string(redirected) else response.body end end end