method

render_text

rails latest stable - Class: ActionController::Base

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.0.0) is shown here.

render_text(text = nil, status = nil)
protected

No documentation available.

# File actionpack/lib/action_controller/base.rb, line 663
      def render_text(text = nil, status = nil)
        @performed_render = true
        @response.headers['Status'] = (status || DEFAULT_RENDER_STATUS_CODE).to_s
        @response.body = text
      end