actionpack/lib/action_controller/renderer.rb
# Create a new renderer class for a specific controller class.
Create a new renderer class for a specific controller class.
Create a new renderer class for a specific controller class .
def for(controller)
        Class.new self do
          self.controller = controller
          self.defaults = {
            http_host: 'example.org',
            https: false,
            method: 'get',
            script_name: '',
            'rack.input' => ''
          }
        end
      end
def for ( controller ) Class . new self do self . controller = controller self . defaults = { http_host : 'example.org' , https : false , method : 'get' , script_name : '' , 'rack.input' => '' } end end
Create a new renderer class for a specific controller class.
Create a new renderer class for a specific controller class .
controller
<not_specific>