Created
February 6, 2009 10:31
-
-
Save roidrage/59322 to your computer and use it in GitHub Desktop.
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 Project < ActiveResource::Base | |
self.site = "http://localhost:3000" | |
end | |
@projects = Project.find(:all) |
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
#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