rubygarage.github.com icon indicating copy to clipboard operation
rubygarage.github.com copied to clipboard

Syntax in Rack slide 3 does not work in recent version of Rack and ruby

Open yaroslavrick opened this issue 7 months ago • 0 comments

Syntax in Rack slide 3 does not work in recent version of Rack (rack-3.1.16) and ruby (3.4.1):

Image

Current line of code that does not works in slides/rack.markdown:

class Racker
  def call(env)
    [200, { 'Content-Type' => 'text/plain' }, ['Something happens!']]
  end
end

Should be fixed to this:

class Racker
  def call(env)
    [200, { 'content-type' => 'text/plain' }, ['Something happens!']]
  end
end

yaroslavrick avatar Jul 19 '25 19:07 yaroslavrick