Merge pull request #104 from vidbina/fix/typos

modified code snippet to reflect that accept returns an AcceptType object instead of a string since v1.4.0
This commit is contained in:
Konstantin Haase 2013-04-23 15:23:45 -07:00
commit af8c0e20ab
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ module Sinatra
# get '/' do
# data = { :name => 'example' }
# request.accept.each do |type|
# case type
# case type.to_s
# when 'text/html'
# halt haml(:index, :locals => data)
# when 'text/json'