{"action":"created","issue":{"url":"https://api.github.com/repos/juhaniaa/ja222qm-webbramverk-a/issues/10","labels_url":"https://api.github.com/repos/juhaniaa/ja222qm-webbramverk-a/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/juhaniaa/ja222qm-webbramverk-a/issues/10/comments","events_url":"https://api.github.com/repos/juhaniaa/ja222qm-webbramverk-a/issues/10/events","html_url":"https://github.com/juhaniaa/ja222qm-webbramverk-a/issues/10","id":57487318,"number":10,"title":"Konsekvent kod","user":{"login":"jh222xk","id":5381928,"avatar_url":"https://avatars.githubusercontent.com/u/5381928?v=3","gravatar_id":"","url":"https://api.github.com/users/jh222xk","html_url":"https://github.com/jh222xk","followers_url":"https://api.github.com/users/jh222xk/followers","following_url":"https://api.github.com/users/jh222xk/following{/other_user}","gists_url":"https://api.github.com/users/jh222xk/gists{/gist_id}","starred_url":"https://api.github.com/users/jh222xk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jh222xk/subscriptions","organizations_url":"https://api.github.com/users/jh222xk/orgs","repos_url":"https://api.github.com/users/jh222xk/repos","events_url":"https://api.github.com/users/jh222xk/events{/privacy}","received_events_url":"https://api.github.com/users/jh222xk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-12T16:56:34Z","updated_at":"2015-02-13T13:35:16Z","closed_at":"2015-02-13T13:35:16Z","body":"Du är inte konsekvent i din kod, din variabel som innehåller user är olika överallt:  `u`, `@user`, `@Users`\r\n\r\nhttps://github.com/juhaniaa/ja222qm-webbramverk-a/blob/master/app/controllers/admins_controller.rb#L11\r\n\r\nhttps://github.com/juhaniaa/ja222qm-webbramverk-a/blob/master/app/controllers/admins_controller.rb#L16\r\n\r\nhttps://github.com/juhaniaa/ja222qm-webbramverk-a/blob/master/app/controllers/users_controller.rb#L6\r\n\r\nhttps://github.com/juhaniaa/ja222qm-webbramverk-a/blob/master/app/controllers/users_controller.rb#L18\r\n\r\nTycker du skulle ha samma så blir det lite tydligare men är helt klart en smaksak, om man ska vara riktigt petig så använder ruby-communityn inte camelCase:\r\n\r\nhttps://github.com/juhaniaa/ja222qm-webbramverk-a/blob/master/app/controllers/admins_controller.rb#L23\r\n\r\nutan istället underscore (_):\r\n\r\nhttps://github.com/juhaniaa/ja222qm-webbramverk-a/blob/master/app/controllers/users_controller.rb#L75\r\n\r\nMen också smaksak som sagt och det är petitesser."},"comment":{"url":"https://api.github.com/repos/juhaniaa/ja222qm-webbramverk-a/issues/comments/74253844","html_url":"https://github.com/juhaniaa/ja222qm-webbramverk-a/issues/10#issuecomment-74253844","issue_url":"https://api.github.com/repos/juhaniaa/ja222qm-webbramverk-a/issues/10","id":74253844,"user":{"login":"juhaniaa","id":5932567,"avatar_url":"https://avatars.githubusercontent.com/u/5932567?v=3","gravatar_id":"","url":"https://api.github.com/users/juhaniaa","html_url":"https://github.com/juhaniaa","followers_url":"https://api.github.com/users/juhaniaa/followers","following_url":"https://api.github.com/users/juhaniaa/following{/other_user}","gists_url":"https://api.github.com/users/juhaniaa/gists{/gist_id}","starred_url":"https://api.github.com/users/juhaniaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juhaniaa/subscriptions","organizations_url":"https://api.github.com/users/juhaniaa/orgs","repos_url":"https://api.github.com/users/juhaniaa/repos","events_url":"https://api.github.com/users/juhaniaa/events{/privacy}","received_events_url":"https://api.github.com/users/juhaniaa/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T13:35:16Z","updated_at":"2015-02-13T13:35:16Z","body":"Har fixat detta, beror nog lite på att jag inte än har förstått skillnaden mellan u och @u. Men tack för all input och hjälp :)"}}