Skip to content

Instantly share code, notes, and snippets.

@mlangenberg
Created November 19, 2011 23:11
Show Gist options
  • Save mlangenberg/1379514 to your computer and use it in GitHub Desktop.
Save mlangenberg/1379514 to your computer and use it in GitHub Desktop.
class Post < ActiveResource::Base
end
class PostsController
def index
json = Post.all :if_modified => true do |posts|
posts.to_json
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment