Skip to content

Instantly share code, notes, and snippets.

@manveru
Created August 3, 2010 05:36
Show Gist options
  • Save manveru/505894 to your computer and use it in GitHub Desktop.
Save manveru/505894 to your computer and use it in GitHub Desktop.
require 'ramaze'
require 'json'
class Main < Ramaze::Controller
provide(:json, type: 'application/json'){|action, value| value.to_json }
def index
{'some' => 'json'}
end
end
Ramaze.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment