Created
July 28, 2012 18:38
-
-
Save smsohan/3194354 to your computer and use it in GitHub Desktop.
Example controller with server token
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
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