{"action":"created","issue":{"url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/26","repository_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect","labels_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/26/comments","events_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/26/events","html_url":"https://github.com/PENGZhaoqing/CourseSelect/issues/26","id":190989432,"number":26,"title":"open方法中的参数传递问题","user":{"login":"jewhau","id":16668095,"avatar_url":"https://avatars.githubusercontent.com/u/16668095?v=3","gravatar_id":"","url":"https://api.github.com/users/jewhau","html_url":"https://github.com/jewhau","followers_url":"https://api.github.com/users/jewhau/followers","following_url":"https://api.github.com/users/jewhau/following{/other_user}","gists_url":"https://api.github.com/users/jewhau/gists{/gist_id}","starred_url":"https://api.github.com/users/jewhau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jewhau/subscriptions","organizations_url":"https://api.github.com/users/jewhau/orgs","repos_url":"https://api.github.com/users/jewhau/repos","events_url":"https://api.github.com/users/jewhau/events{/privacy}","received_events_url":"https://api.github.com/users/jewhau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-22T12:42:08Z","updated_at":"2016-11-22T15:20:25Z","closed_at":null,"body":"```\r\n  def open\r\n    @course=Course.find_by_id(params[:id])\r\n    if @course.open_attributes(course_params)\r\n      flash={:info => \"开放成功\"}\r\n    else\r\n      flash={:warning => \"开放失败\"}\r\n\r\n  def 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)\r\n  end\r\n```\r\n当我点击开放课程时，出现下面的错误提示，上面两段是提示错误的地方\r\n```\r\nActionController::ParameterMissing in CoursesController#open\r\nparam is missing or the value is empty: course\r\n```"},"comment":{"url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/comments/262268915","html_url":"https://github.com/PENGZhaoqing/CourseSelect/issues/26#issuecomment-262268915","issue_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/26","id":262268915,"user":{"login":"jewhau","id":16668095,"avatar_url":"https://avatars.githubusercontent.com/u/16668095?v=3","gravatar_id":"","url":"https://api.github.com/users/jewhau","html_url":"https://github.com/jewhau","followers_url":"https://api.github.com/users/jewhau/followers","following_url":"https://api.github.com/users/jewhau/following{/other_user}","gists_url":"https://api.github.com/users/jewhau/gists{/gist_id}","starred_url":"https://api.github.com/users/jewhau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jewhau/subscriptions","organizations_url":"https://api.github.com/users/jewhau/orgs","repos_url":"https://api.github.com/users/jewhau/repos","events_url":"https://api.github.com/users/jewhau/events{/privacy}","received_events_url":"https://api.github.com/users/jewhau/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T15:20:25Z","updated_at":"2016-11-22T15:20:25Z","body":"谢啦，不过我还是没能解决，一定是还有什么没弄好"}}
{"actor":{"display_login":"jewhau"}}