Skip to content

Commit

Permalink
Merge pull request postrank-labs#205 from moretea/update_template_exa…
Browse files Browse the repository at this point in the history
…mple

Update examples/template.rb
  • Loading branch information
igrigorik committed Sep 16, 2012
2 parents dfa8559 + 2cc0869 commit 9b3e2c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/template.rb
Expand Up @@ -40,8 +40,7 @@ def recent_latency

def response(env)
case env['PATH_INFO']
# TODO(dj2): change /root -> / when rack > 1.4.0 is released
when '/root' then [200, {}, haml(:root)]
when '/' then [200, {}, haml(:root)]
when '/haml_str' then [200, {}, haml("%h1 Header")]
when '/debug' then [200, {}, haml(:debug)]
when '/oops' then [200, {}, haml(:no_such_template)] # will 500
Expand Down

0 comments on commit 9b3e2c8

Please sign in to comment.