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:
commit
af8c0e20ab
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue