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 96
96: def render_component(options) #:doc:
97: component_logging(options) do
98: render_text(component_response(options, true).body, response.headers["Status"])
99: end
100: end
Returns the component response as a string
[ show source ]
# File vendor/rails/actionpack/lib/action_controller/components.rb, line 103
103: def render_component_as_string(options) #:doc:
104: component_logging(options) do
105: response = component_response(options, false)
106:
107: if redirected = response.redirected_to
108: render_component_as_string(redirected)
109: else
110: response.body
111: end
112: end
113: end