Skip to content

Commit 04e5898

Browse files
authored
correcting content_type
js to json
1 parent 1d2aab7 commit 04e5898

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_includes/sinatra-json.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ <h3 id="label-Overriding+the+Encoder+and+the+Content-Type">Overriding the Encode
8989
those to the json method:</p>
9090

9191
<pre class="ruby"><span class="ruby-identifier">get</span> <span class="ruby-string">&#39;/&#39;</span> <span class="ruby-keyword">do</span>
92-
<span class="ruby-identifier">json</span>({:<span class="ruby-identifier">foo</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&#39;bar&#39;</span>}, :<span class="ruby-identifier">encoder</span> =<span class="ruby-operator">&gt;</span> :<span class="ruby-identifier">to_json</span>, :<span class="ruby-identifier">content_type</span> =<span class="ruby-operator">&gt;</span> :<span class="ruby-identifier">js</span>)
92+
<span class="ruby-identifier">json</span>({:<span class="ruby-identifier">foo</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&#39;bar&#39;</span>}, :<span class="ruby-identifier">encoder</span> =<span class="ruby-operator">&gt;</span> :<span class="ruby-identifier">to_json</span>, :<span class="ruby-identifier">content_type</span> =<span class="ruby-operator">&gt;</span> :<span class="ruby-identifier">json</span>)
9393
<span class="ruby-keyword">end</span>
9494
</pre>

0 commit comments

Comments
 (0)