Skip to content

Instantly share code, notes, and snippets.

@smsohan
Created July 28, 2012 18:38
Show Gist options
  • Save smsohan/3194354 to your computer and use it in GitHub Desktop.
Save smsohan/3194354 to your computer and use it in GitHub Desktop.
Example controller with server token
class ExampleController < ApplicationController
def index
data = Sale.example_data
server_token = Rails.root.to_s
respond_with {data: data, server_token: server_token}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment