Last active
December 10, 2015 06:47
-
-
Save drewdeponte/cc9dd4735fcd07c2cf77 to your computer and use it in GitHub Desktop.
Lotus View with Custom Render for Serialization and automatic html escape
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 | |
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