{"action":"created","issue":{"url":"https://api.github.com/repos/koutaodawara/protospace/issues/10","repository_url":"https://api.github.com/repos/koutaodawara/protospace","labels_url":"https://api.github.com/repos/koutaodawara/protospace/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/koutaodawara/protospace/issues/10/comments","events_url":"https://api.github.com/repos/koutaodawara/protospace/issues/10/events","html_url":"https://github.com/koutaodawara/protospace/pull/10","id":151377925,"number":10,"title":"WIP 画像の投稿機能実装","user":{"login":"koutaodawara","id":16679894,"avatar_url":"https://avatars.githubusercontent.com/u/16679894?v=3","gravatar_id":"","url":"https://api.github.com/users/koutaodawara","html_url":"https://github.com/koutaodawara","followers_url":"https://api.github.com/users/koutaodawara/followers","following_url":"https://api.github.com/users/koutaodawara/following{/other_user}","gists_url":"https://api.github.com/users/koutaodawara/gists{/gist_id}","starred_url":"https://api.github.com/users/koutaodawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koutaodawara/subscriptions","organizations_url":"https://api.github.com/users/koutaodawara/orgs","repos_url":"https://api.github.com/users/koutaodawara/repos","events_url":"https://api.github.com/users/koutaodawara/events{/privacy}","received_events_url":"https://api.github.com/users/koutaodawara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-27T12:54:55Z","updated_at":"2016-04-30T10:33:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/koutaodawara/protospace/pulls/10","html_url":"https://github.com/koutaodawara/protospace/pull/10","diff_url":"https://github.com/koutaodawara/protospace/pull/10.diff","patch_url":"https://github.com/koutaodawara/protospace/pull/10.patch"},"body":"# WHAT\r\n* 投稿画面で画像を投稿できるようにする\r\n* DBでmainかsubかの画像の判断をできるようにする(enum)\r\n* carrier wave で updateフォルダを作り記述\r\n* なんとかアトリビュートフォーを使う\r\n\r\n* model と migrationファイルを書き換えました。\r\n\r\n# WHY \r\n* 投稿する時画像を保存したいから\r\n* データベースで管理しやすくするため\r\n* 画像のサイズなどオプションをつけるため\r\n* form＿forの中でform_forのようなものを使うため\r\n\r\n* テーブルを作るため。\r\n\r\n#### 最初のプルリク間違って、からのコミットでPL出すことができませんでした。ごめんなさい"},"comment":{"url":"https://api.github.com/repos/koutaodawara/protospace/issues/comments/215953208","html_url":"https://github.com/koutaodawara/protospace/pull/10#issuecomment-215953208","issue_url":"https://api.github.com/repos/koutaodawara/protospace/issues/10","id":215953208,"user":{"login":"koutaodawara","id":16679894,"avatar_url":"https://avatars.githubusercontent.com/u/16679894?v=3","gravatar_id":"","url":"https://api.github.com/users/koutaodawara","html_url":"https://github.com/koutaodawara","followers_url":"https://api.github.com/users/koutaodawara/followers","following_url":"https://api.github.com/users/koutaodawara/following{/other_user}","gists_url":"https://api.github.com/users/koutaodawara/gists{/gist_id}","starred_url":"https://api.github.com/users/koutaodawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koutaodawara/subscriptions","organizations_url":"https://api.github.com/users/koutaodawara/orgs","repos_url":"https://api.github.com/users/koutaodawara/repos","events_url":"https://api.github.com/users/koutaodawara/events{/privacy}","received_events_url":"https://api.github.com/users/koutaodawara/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T10:33:19Z","updated_at":"2016-04-30T10:33:19Z","body":"* ignoreしたらコミットができないからミスったら終わるからですか！？\r\n* バグらなかったです。エラーメッセージが出てdbにも何も保存されてないです。　\r\n* まずバリデーションかけてなかったのでnillで保存されました。それでかけたら、全部入れないと保存できなくなったんですけど。どーするのがベストですか？\r\n* ファイル消します\r\n* なるほどifを使う感じですね！サイズってindexとshowで違うのでどっちに合わせる感じですか？デフォルト了解です！\r\n* FMやってみます！！！\r\n\r\n\r\n\r\n"}}