Browse files

Add raw to JSON render

This is one of the only examples of JSON output using lotus. The latest versions of Lotus do HTML safety by default. By adding the `raw` to the method call we give people exploring the docs a more "ready to copy-paste" example.
  • Loading branch information...
oana-sipos committed Dec 7, 2015
1 parent bebe0ef commit 9dc8c3a089faf23d8ed5d4771680c223a6be1065
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/guides/views/
@@ -63,7 +63,7 @@ module Web::Views::Dashboard
format :json
def render
JSON.generate({foo: 'bar'})
raw JSON.generate({foo: 'bar'})

0 comments on commit 9dc8c3a

Please sign in to comment.