Methods
Protected Instance methods
Renders the component specified as the response for the current method
[ show source ]
# File vendor/rails/actionpack/lib/action_controller/components.rb, line 99 99: def render_component(options) #:doc: 100: component_logging(options) do 101: render_text(component_response(options, true).body, response.headers["Status"]) 102: end 103: end
Returns the component response as a string
[ show source ]
# File vendor/rails/actionpack/lib/action_controller/components.rb, line 106 106: def render_component_as_string(options) #:doc: 107: component_logging(options) do 108: response = component_response(options, false) 109: 110: if redirected = response.redirected_to 111: render_component_as_string(redirected) 112: else 113: response.body 114: end 115: end 116: end