Skip to content

Instantly share code, notes, and snippets.

@oren
Created March 22, 2010 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oren/339704 to your computer and use it in GitHub Desktop.
Save oren/339704 to your computer and use it in GitHub Desktop.
ssue model on the client side
class Issue < ActiveResource::Base
self.site = 'http://localhost:3000'
self.user = 'admin'
self.password = 'admin'
end
Retrieving issues
issues = Issue.find(:all)
puts issues.first@
what about the api access key? should i pass it instead of the user/password?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment