This file contains hidden or 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
| def import | |
| params[:import] | |
| begin | |
| Learner.import(params[:file], current_user) | |
| rescue Exception => e | |
| render json: e and return | |
| end | |
| redirect_to groups_path, notice: "Successfully imported!" | |
| end |
This file contains hidden or 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 "PopOverTestowyViewController.h" | |
| #import "FPPopoverController.h" | |
| -(IBAction)otwieramPopover:(id)sender{ | |
| //SAFE_ARC_RELEASE(popover); popover=nil; | |
| //You have set "testController" as the identifier of your PopOverTestowyViewController in storyboard | |
| PopOverTestowyViewController *mojController=[self.storyboard instantiateViewControllerWithIdentifier:@"testController"]; | |
| //mojController.delegate = self; | |
| FPPopoverController *popover=[[FPPopoverController alloc]initWithViewController:mojController]; |
This file contains hidden or 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
| for(i=0; i < 10; ++i) { | |
| db.posts.insert({ | |
| _id: i, | |
| title: "Article number "+i | |
| }); | |
| } |
This file contains hidden or 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
| db.posts.insert({ | |
| title: "A MongoDB article", | |
| content: "...", | |
| author: { | |
| name: "Alvise Susmel", | |
| email: "alvise@poeticoding.com" | |
| }, | |
| tags: ["mongodb", "nosql"] | |
| }); |
NewerOlder