Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

merged 1 commit into from

2 participants

David Asabina Konstantin Haase
David Asabina

Fixed a broken documentation snippet.

Konstantin Haase rkh merged commit 1aed289 into from
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
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.