title: can't set cookie and render template
body: <p>I try to set cookie and render template. The cookie works, but template doesn't. I receive:</p>
  
  <pre><code>&lt;pre style="word-wrap: break-word; white-space: pre-wrap;"&gt;&lt;/pre&gt; 
  </code></pre>
  
  <p>What do I do wrong?</p>
  
  <pre><code>class Racker
    def self.call(env)
      new(env).response.finish
    end
  
    def initialize(env)
      @request = Rack::Request.new(env)
    end
  
    def response
      case @request.path
      when '/new_game'
       Rack::Response.new do |response|  
       response.set_cookie('name', @request.params['name'])  
       render('new_game')
      end
      ...
      end
    end
  
    def render(template)
      path = File.expand_path("./views/#{template}.html.erb")
      ERB.new(File.read(path)).result(binding)
    end
  end
  </code></pre>