{"action":"created","issue":{"url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/35","repository_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect","labels_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/35/comments","events_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/35/events","html_url":"https://github.com/PENGZhaoqing/CourseSelect/issues/35","id":191783206,"number":35,"title":"open方法有问题","user":{"login":"5663015","id":8531141,"avatar_url":"https://avatars.githubusercontent.com/u/8531141?v=3","gravatar_id":"","url":"https://api.github.com/users/5663015","html_url":"https://github.com/5663015","followers_url":"https://api.github.com/users/5663015/followers","following_url":"https://api.github.com/users/5663015/following{/other_user}","gists_url":"https://api.github.com/users/5663015/gists{/gist_id}","starred_url":"https://api.github.com/users/5663015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5663015/subscriptions","organizations_url":"https://api.github.com/users/5663015/orgs","repos_url":"https://api.github.com/users/5663015/repos","events_url":"https://api.github.com/users/5663015/events{/privacy}","received_events_url":"https://api.github.com/users/5663015/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-26T02:55:38Z","updated_at":"2016-11-27T01:29:33Z","closed_at":null,"body":"```\r\ndef open\r\n    @course=Course.find_by_id(params[:id])\r\n    @course.open_close=true\r\n    @course.save\r\n    redirect_to courses_path, flash: {:success => \"已经成功开启该课程:#{ @course.name}\"}\r\n  end\r\n\r\ndef course_params\r\n    params.require(:course).permit(:course_code, :name, :course_type, :teaching_type, :exam_type,\r\n                                   :credit, :limit_num, :class_room, :course_time, :course_week, :open_close)\r\n  end\r\n```\r\n`\r\n\r\n![image](https://cloud.githubusercontent.com/assets/8531141/20637574/d87e09ba-b3c6-11e6-8e00-f6450ef4ccef.png)\r\n"},"comment":{"url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/comments/263096518","html_url":"https://github.com/PENGZhaoqing/CourseSelect/issues/35#issuecomment-263096518","issue_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/35","id":263096518,"user":{"login":"5663015","id":8531141,"avatar_url":"https://avatars.githubusercontent.com/u/8531141?v=3","gravatar_id":"","url":"https://api.github.com/users/5663015","html_url":"https://github.com/5663015","followers_url":"https://api.github.com/users/5663015/followers","following_url":"https://api.github.com/users/5663015/following{/other_user}","gists_url":"https://api.github.com/users/5663015/gists{/gist_id}","starred_url":"https://api.github.com/users/5663015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5663015/subscriptions","organizations_url":"https://api.github.com/users/5663015/orgs","repos_url":"https://api.github.com/users/5663015/repos","events_url":"https://api.github.com/users/5663015/events{/privacy}","received_events_url":"https://api.github.com/users/5663015/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T01:29:33Z","updated_at":"2016-11-27T01:29:33Z","body":"已经解决了，谢谢~"}}
{"actor":{"display_login":"5663015"}}