{"action":"opened","issue":{"url":"https://api.github.com/repos/nyc-bobolinks-2015/arc-CRUD/issues/2","labels_url":"https://api.github.com/repos/nyc-bobolinks-2015/arc-CRUD/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/nyc-bobolinks-2015/arc-CRUD/issues/2/comments","events_url":"https://api.github.com/repos/nyc-bobolinks-2015/arc-CRUD/issues/2/events","html_url":"https://github.com/nyc-bobolinks-2015/arc-CRUD/issues/2","id":116597514,"number":2,"title":"Code Review","user":{"login":"cdimartino","id":191587,"avatar_url":"https://avatars.githubusercontent.com/u/191587?v=3","gravatar_id":"","url":"https://api.github.com/users/cdimartino","html_url":"https://github.com/cdimartino","followers_url":"https://api.github.com/users/cdimartino/followers","following_url":"https://api.github.com/users/cdimartino/following{/other_user}","gists_url":"https://api.github.com/users/cdimartino/gists{/gist_id}","starred_url":"https://api.github.com/users/cdimartino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdimartino/subscriptions","organizations_url":"https://api.github.com/users/cdimartino/orgs","repos_url":"https://api.github.com/users/cdimartino/repos","events_url":"https://api.github.com/users/cdimartino/events{/privacy}","received_events_url":"https://api.github.com/users/cdimartino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-12T17:22:22Z","updated_at":"2015-11-12T17:22:22Z","closed_at":null,"body":"## Controllers\r\n\r\n```ruby\r\nget '/knicks' -> index route\r\nput '/knicks/:id'\r\ndelete '/knicks/:id'\r\n```\r\n## Models\r\n\r\n## Views\r\n\r\nRemember - to get the PUT/PATCH/DELETE verbs to work, your FORM needs:\r\n\r\n```html\r\n<!-- http://guides.rubyonrails.org/form_helpers.html#how-do-forms-with-patch-put-or-delete-methods-work-questionmark -->\r\n<input type='hidden' name='_method' value='PUT' />\r\n```\r\n\r\n\r\n## Know what this does if it's going to be in your code. REALLY.  Know what your code is doing.  Dont submit code if you dont know what its doing.  REALLY\r\n\r\n@knick.try(:name)\r\n\r\n# This is for when you want to chain methods and one of them might return a nil.\r\nhttp://api.rubyonrails.org/classes/Object.html#method-i-try\r\n\r\n@knick.try(:games).each"}}