Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save drewdeponte/9dad5d8ee4edafea81db to your computer and use it in GitHub Desktop.
Save drewdeponte/9dad5d8ee4edafea81db to your computer and use it in GitHub Desktop.
Lotus View with Serialization and without html escaping
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