Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

modified code snippet to reflect that accept returns an AcceptType object instead of a string since v1.4.0 #104

Merged
merged 1 commit into from

2 participants

@vidbina

Fixed a broken documentation snippet.

@rkh rkh merged commit 1aed289 into sinatra:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sinatra/respond_with.rb
View
2  lib/sinatra/respond_with.rb
@@ -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'
Something went wrong with that request. Please try again.