{"action":"created","issue":{"url":"https://api.github.com/repos/risacan/EmojiArtGallery/issues/6","repository_url":"https://api.github.com/repos/risacan/EmojiArtGallery","labels_url":"https://api.github.com/repos/risacan/EmojiArtGallery/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/risacan/EmojiArtGallery/issues/6/comments","events_url":"https://api.github.com/repos/risacan/EmojiArtGallery/issues/6/events","html_url":"https://github.com/risacan/EmojiArtGallery/issues/6","id":185810434,"number":6,"title":"6章","user":{"login":"risacan","id":13192318,"avatar_url":"https://avatars.githubusercontent.com/u/13192318?v=3","gravatar_id":"","url":"https://api.github.com/users/risacan","html_url":"https://github.com/risacan","followers_url":"https://api.github.com/users/risacan/followers","following_url":"https://api.github.com/users/risacan/following{/other_user}","gists_url":"https://api.github.com/users/risacan/gists{/gist_id}","starred_url":"https://api.github.com/users/risacan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/risacan/subscriptions","organizations_url":"https://api.github.com/users/risacan/orgs","repos_url":"https://api.github.com/users/risacan/repos","events_url":"https://api.github.com/users/risacan/events{/privacy}","received_events_url":"https://api.github.com/users/risacan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-28T00:09:15Z","updated_at":"2016-11-09T01:32:10Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/risacan/EmojiArtGallery/issues/comments/259312556","html_url":"https://github.com/risacan/EmojiArtGallery/issues/6#issuecomment-259312556","issue_url":"https://api.github.com/repos/risacan/EmojiArtGallery/issues/6","id":259312556,"user":{"login":"risacan","id":13192318,"avatar_url":"https://avatars.githubusercontent.com/u/13192318?v=3","gravatar_id":"","url":"https://api.github.com/users/risacan","html_url":"https://github.com/risacan","followers_url":"https://api.github.com/users/risacan/followers","following_url":"https://api.github.com/users/risacan/following{/other_user}","gists_url":"https://api.github.com/users/risacan/gists{/gist_id}","starred_url":"https://api.github.com/users/risacan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/risacan/subscriptions","organizations_url":"https://api.github.com/users/risacan/orgs","repos_url":"https://api.github.com/users/risacan/repos","events_url":"https://api.github.com/users/risacan/events{/privacy}","received_events_url":"https://api.github.com/users/risacan/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T01:32:10Z","updated_at":"2016-11-09T01:32:10Z","body":"`models/user.rb`\r\n```ruby\r\nclass User < ApplicationRecord\r\n  validates :name, presence: true\r\nend\r\n```\r\n\r\n\r\n```rb\r\n$ rails console --sandbox\r\n>> user = User.new(name: \"\", email: \"mhartl@example.com\")\r\n>> user.valid?\r\n=> false\r\n>> user.errors.full_messages\r\n=> [\"Name can't be blank\"]\r\n>> user.save\r\n=> false\r\n```\r\n\r\n便利すぎ"}}
{"actor":{"display_login":"risacan"}}