Created
December 10, 2015 06:53
-
-
Save drewdeponte/9dad5d8ee4edafea81db to your computer and use it in GitHub Desktop.
Lotus View with Serialization and without html escaping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ShipmunkApi::Views::Users | |
class Create | |
include Lotus::View | |
format :v1 | |
def render | |
_raw(JSON.generate({foo:'hello'})) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment