Skip to content

Instantly share code, notes, and snippets.

@roidrage
Created February 6, 2009 10:31
Show Gist options
  • Save roidrage/59322 to your computer and use it in GitHub Desktop.
Save roidrage/59322 to your computer and use it in GitHub Desktop.
class Project < ActiveResource::Base
self.site = "http://localhost:3000"
end
@projects = Project.find(:all)
#import "ObjectiveResource.h"
#import "ObjectiveResourceConfig.h"
@interface Project : NSObject {
NSString *projectId;
NSString *name;
}
@property (retain, nonatomic) NSString *name;
@property (retain, nonatomic) NSString *projectId;
@end
[ObjectiveResourceConfig setSite:@"http://webistrano.local/"];
NSArray* projects = [Project findAllRemote]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment