{"action":"created","comment":{"url":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/comments/27366549","id":27366549,"diff_hunk":"@@ -1,4 +1,41 @@\n class EventsController < ApplicationController\n+\n+  require 'date'\n+\n   def new\n+  \t@event = Event.new\n   end\n+\n+  def create\n+    @event = Event.new(event_params)\n+\n+    if @event.save\n+      redirect_to event_path(@event)\n+    else\n+      puts \"Not saved event\"","path":"app/controllers/events_controller.rb","position":15,"original_position":15,"commit_id":"b2da73d980552ff51c72a808f462d371f7c8f254","original_commit_id":"b2da73d980552ff51c72a808f462d371f7c8f254","user":{"login":"afeld","id":86842,"avatar_url":"https://avatars.githubusercontent.com/u/86842?v=3","gravatar_id":"","url":"https://api.github.com/users/afeld","html_url":"https://github.com/afeld","followers_url":"https://api.github.com/users/afeld/followers","following_url":"https://api.github.com/users/afeld/following{/other_user}","gists_url":"https://api.github.com/users/afeld/gists{/gist_id}","starred_url":"https://api.github.com/users/afeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afeld/subscriptions","organizations_url":"https://api.github.com/users/afeld/orgs","repos_url":"https://api.github.com/users/afeld/repos","events_url":"https://api.github.com/users/afeld/events{/privacy}","received_events_url":"https://api.github.com/users/afeld/received_events","type":"User","site_admin":false},"body":"Look into using [`flash`](http://guides.rubyonrails.org/action_controller_overview.html#the-flash) messages.","created_at":"2015-03-30T04:48:01Z","updated_at":"2015-03-30T04:48:01Z","html_url":"https://github.com/cuny-nytech/coderdojo/pull/2#discussion_r27366549","pull_request_url":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/comments/27366549"},"html":{"href":"https://github.com/cuny-nytech/coderdojo/pull/2#discussion_r27366549"},"pull_request":{"href":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/2","id":32194100,"html_url":"https://github.com/cuny-nytech/coderdojo/pull/2","diff_url":"https://github.com/cuny-nytech/coderdojo/pull/2.diff","patch_url":"https://github.com/cuny-nytech/coderdojo/pull/2.patch","issue_url":"https://api.github.com/repos/cuny-nytech/coderdojo/issues/2","number":2,"state":"open","locked":false,"title":"[WIP] Event tickets II","user":{"login":"sdjukic","id":4087996,"avatar_url":"https://avatars.githubusercontent.com/u/4087996?v=3","gravatar_id":"","url":"https://api.github.com/users/sdjukic","html_url":"https://github.com/sdjukic","followers_url":"https://api.github.com/users/sdjukic/followers","following_url":"https://api.github.com/users/sdjukic/following{/other_user}","gists_url":"https://api.github.com/users/sdjukic/gists{/gist_id}","starred_url":"https://api.github.com/users/sdjukic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdjukic/subscriptions","organizations_url":"https://api.github.com/users/sdjukic/orgs","repos_url":"https://api.github.com/users/sdjukic/repos","events_url":"https://api.github.com/users/sdjukic/events{/privacy}","received_events_url":"https://api.github.com/users/sdjukic/received_events","type":"User","site_admin":false},"body":"HI all. @afeld @rickyc @RayFerr000 @SG622 \r\nI finished with creating new event. And just to check it visually I created bare bones show page.\r\nCheck it out and let me know what do you think. After this I'll move on to edit events and then on creating tickets for events.\r\n","created_at":"2015-03-30T02:22:54Z","updated_at":"2015-03-30T04:48:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/2/commits","review_comments_url":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/2/comments","review_comment_url":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cuny-nytech/coderdojo/issues/2/comments","statuses_url":"https://api.github.com/repos/cuny-nytech/coderdojo/statuses/b2da73d980552ff51c72a808f462d371f7c8f254","head":{"label":"cuny-nytech:event-tickets","ref":"event-tickets","sha":"b2da73d980552ff51c72a808f462d371f7c8f254","user":{"login":"cuny-nytech","id":8275545,"avatar_url":"https://avatars.githubusercontent.com/u/8275545?v=3","gravatar_id":"","url":"https://api.github.com/users/cuny-nytech","html_url":"https://github.com/cuny-nytech","followers_url":"https://api.github.com/users/cuny-nytech/followers","following_url":"https://api.github.com/users/cuny-nytech/following{/other_user}","gists_url":"https://api.github.com/users/cuny-nytech/gists{/gist_id}","starred_url":"https://api.github.com/users/cuny-nytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuny-nytech/subscriptions","organizations_url":"https://api.github.com/users/cuny-nytech/orgs","repos_url":"https://api.github.com/users/cuny-nytech/repos","events_url":"https://api.github.com/users/cuny-nytech/events{/privacy}","received_events_url":"https://api.github.com/users/cuny-nytech/received_events","type":"Organization","site_admin":false},"repo":{"id":31937045,"name":"coderdojo","full_name":"cuny-nytech/coderdojo","owner":{"login":"cuny-nytech","id":8275545,"avatar_url":"https://avatars.githubusercontent.com/u/8275545?v=3","gravatar_id":"","url":"https://api.github.com/users/cuny-nytech","html_url":"https://github.com/cuny-nytech","followers_url":"https://api.github.com/users/cuny-nytech/followers","following_url":"https://api.github.com/users/cuny-nytech/following{/other_user}","gists_url":"https://api.github.com/users/cuny-nytech/gists{/gist_id}","starred_url":"https://api.github.com/users/cuny-nytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuny-nytech/subscriptions","organizations_url":"https://api.github.com/users/cuny-nytech/orgs","repos_url":"https://api.github.com/users/cuny-nytech/repos","events_url":"https://api.github.com/users/cuny-nytech/events{/privacy}","received_events_url":"https://api.github.com/users/cuny-nytech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cuny-nytech/coderdojo","description":"","fork":false,"url":"https://api.github.com/repos/cuny-nytech/coderdojo","forks_url":"https://api.github.com/repos/cuny-nytech/coderdojo/forks","keys_url":"https://api.github.com/repos/cuny-nytech/coderdojo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuny-nytech/coderdojo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuny-nytech/coderdojo/teams","hooks_url":"https://api.github.com/repos/cuny-nytech/coderdojo/hooks","issue_events_url":"https://api.github.com/repos/cuny-nytech/coderdojo/issues/events{/number}","events_url":"https://api.github.com/repos/cuny-nytech/coderdojo/events","assignees_url":"https://api.github.com/repos/cuny-nytech/coderdojo/assignees{/user}","branches_url":"https://api.github.com/repos/cuny-nytech/coderdojo/branches{/branch}","tags_url":"https://api.github.com/repos/cuny-nytech/coderdojo/tags","blobs_url":"https://api.github.com/repos/cuny-nytech/coderdojo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuny-nytech/coderdojo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuny-nytech/coderdojo/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuny-nytech/coderdojo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuny-nytech/coderdojo/statuses/{sha}","languages_url":"https://api.github.com/repos/cuny-nytech/coderdojo/languages","stargazers_url":"https://api.github.com/repos/cuny-nytech/coderdojo/stargazers","contributors_url":"https://api.github.com/repos/cuny-nytech/coderdojo/contributors","subscribers_url":"https://api.github.com/repos/cuny-nytech/coderdojo/subscribers","subscription_url":"https://api.github.com/repos/cuny-nytech/coderdojo/subscription","commits_url":"https://api.github.com/repos/cuny-nytech/coderdojo/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuny-nytech/coderdojo/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuny-nytech/coderdojo/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuny-nytech/coderdojo/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuny-nytech/coderdojo/contents/{+path}","compare_url":"https://api.github.com/repos/cuny-nytech/coderdojo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuny-nytech/coderdojo/merges","archive_url":"https://api.github.com/repos/cuny-nytech/coderdojo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuny-nytech/coderdojo/downloads","issues_url":"https://api.github.com/repos/cuny-nytech/coderdojo/issues{/number}","pulls_url":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls{/number}","milestones_url":"https://api.github.com/repos/cuny-nytech/coderdojo/milestones{/number}","notifications_url":"https://api.github.com/repos/cuny-nytech/coderdojo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuny-nytech/coderdojo/labels{/name}","releases_url":"https://api.github.com/repos/cuny-nytech/coderdojo/releases{/id}","created_at":"2015-03-10T03:46:29Z","updated_at":"2015-03-29T22:56:26Z","pushed_at":"2015-03-30T02:22:55Z","git_url":"git://github.com/cuny-nytech/coderdojo.git","ssh_url":"git@github.com:cuny-nytech/coderdojo.git","clone_url":"https://github.com/cuny-nytech/coderdojo.git","svn_url":"https://github.com/cuny-nytech/coderdojo","homepage":null,"size":160,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"cuny-nytech:master","ref":"master","sha":"a4b5eec7e5ec1d28770ac53ba58ed8ee5751767d","user":{"login":"cuny-nytech","id":8275545,"avatar_url":"https://avatars.githubusercontent.com/u/8275545?v=3","gravatar_id":"","url":"https://api.github.com/users/cuny-nytech","html_url":"https://github.com/cuny-nytech","followers_url":"https://api.github.com/users/cuny-nytech/followers","following_url":"https://api.github.com/users/cuny-nytech/following{/other_user}","gists_url":"https://api.github.com/users/cuny-nytech/gists{/gist_id}","starred_url":"https://api.github.com/users/cuny-nytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuny-nytech/subscriptions","organizations_url":"https://api.github.com/users/cuny-nytech/orgs","repos_url":"https://api.github.com/users/cuny-nytech/repos","events_url":"https://api.github.com/users/cuny-nytech/events{/privacy}","received_events_url":"https://api.github.com/users/cuny-nytech/received_events","type":"Organization","site_admin":false},"repo":{"id":31937045,"name":"coderdojo","full_name":"cuny-nytech/coderdojo","owner":{"login":"cuny-nytech","id":8275545,"avatar_url":"https://avatars.githubusercontent.com/u/8275545?v=3","gravatar_id":"","url":"https://api.github.com/users/cuny-nytech","html_url":"https://github.com/cuny-nytech","followers_url":"https://api.github.com/users/cuny-nytech/followers","following_url":"https://api.github.com/users/cuny-nytech/following{/other_user}","gists_url":"https://api.github.com/users/cuny-nytech/gists{/gist_id}","starred_url":"https://api.github.com/users/cuny-nytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuny-nytech/subscriptions","organizations_url":"https://api.github.com/users/cuny-nytech/orgs","repos_url":"https://api.github.com/users/cuny-nytech/repos","events_url":"https://api.github.com/users/cuny-nytech/events{/privacy}","received_events_url":"https://api.github.com/users/cuny-nytech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cuny-nytech/coderdojo","description":"","fork":false,"url":"https://api.github.com/repos/cuny-nytech/coderdojo","forks_url":"https://api.github.com/repos/cuny-nytech/coderdojo/forks","keys_url":"https://api.github.com/repos/cuny-nytech/coderdojo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuny-nytech/coderdojo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuny-nytech/coderdojo/teams","hooks_url":"https://api.github.com/repos/cuny-nytech/coderdojo/hooks","issue_events_url":"https://api.github.com/repos/cuny-nytech/coderdojo/issues/events{/number}","events_url":"https://api.github.com/repos/cuny-nytech/coderdojo/events","assignees_url":"https://api.github.com/repos/cuny-nytech/coderdojo/assignees{/user}","branches_url":"https://api.github.com/repos/cuny-nytech/coderdojo/branches{/branch}","tags_url":"https://api.github.com/repos/cuny-nytech/coderdojo/tags","blobs_url":"https://api.github.com/repos/cuny-nytech/coderdojo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuny-nytech/coderdojo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuny-nytech/coderdojo/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuny-nytech/coderdojo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuny-nytech/coderdojo/statuses/{sha}","languages_url":"https://api.github.com/repos/cuny-nytech/coderdojo/languages","stargazers_url":"https://api.github.com/repos/cuny-nytech/coderdojo/stargazers","contributors_url":"https://api.github.com/repos/cuny-nytech/coderdojo/contributors","subscribers_url":"https://api.github.com/repos/cuny-nytech/coderdojo/subscribers","subscription_url":"https://api.github.com/repos/cuny-nytech/coderdojo/subscription","commits_url":"https://api.github.com/repos/cuny-nytech/coderdojo/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuny-nytech/coderdojo/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuny-nytech/coderdojo/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuny-nytech/coderdojo/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuny-nytech/coderdojo/contents/{+path}","compare_url":"https://api.github.com/repos/cuny-nytech/coderdojo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuny-nytech/coderdojo/merges","archive_url":"https://api.github.com/repos/cuny-nytech/coderdojo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuny-nytech/coderdojo/downloads","issues_url":"https://api.github.com/repos/cuny-nytech/coderdojo/issues{/number}","pulls_url":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls{/number}","milestones_url":"https://api.github.com/repos/cuny-nytech/coderdojo/milestones{/number}","notifications_url":"https://api.github.com/repos/cuny-nytech/coderdojo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuny-nytech/coderdojo/labels{/name}","releases_url":"https://api.github.com/repos/cuny-nytech/coderdojo/releases{/id}","created_at":"2015-03-10T03:46:29Z","updated_at":"2015-03-29T22:56:26Z","pushed_at":"2015-03-30T02:22:55Z","git_url":"git://github.com/cuny-nytech/coderdojo.git","ssh_url":"git@github.com:cuny-nytech/coderdojo.git","clone_url":"https://github.com/cuny-nytech/coderdojo.git","svn_url":"https://github.com/cuny-nytech/coderdojo","homepage":null,"size":160,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/2"},"html":{"href":"https://github.com/cuny-nytech/coderdojo/pull/2"},"issue":{"href":"https://api.github.com/repos/cuny-nytech/coderdojo/issues/2"},"comments":{"href":"https://api.github.com/repos/cuny-nytech/coderdojo/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cuny-nytech/coderdojo/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/cuny-nytech/coderdojo/statuses/b2da73d980552ff51c72a808f462d371f7c8f254"}}}}