app/controllers/exercises_controller.rb
# stochastics of student performance through lecture of the exercise
stochastics of student performance through lecture of the exercise
stochastics of student performance through lecture of the exercise
def stochastics_of_students
    catch :flash_now do
      receive_and_set_background_params
      setting_global_assert_time_with_academic_season
      academic_season_cond = set_academic_season_cond("reports", :created_at)
      @exercise = find_entity      
      @def_items = Def_Stochastics_Items     
      @lecture  = @exercise.assoc_dependee "Lecture", "[(<< :self)
                                                        (>> :Course)]", 
                       :assert_time => :anytime,
                       :select      => {:id => "lectures.id", :run_id => "lectures.run_id", :course_name => "courses.name"}
      flash_now @lecture.blank?, "該当する授業がありません．"
      @collection = @lecture.associated_with "UserInfo", "<- .created_by :Report[( >> :Exercise >> :self)
                                                                                 ( <- :ReportComment )]",
                       :select => select_items,
                       :conditions  => academic_season_cond,
                       :group  => "user_infos.name"
      @view_allowed = [:no_detail_call]
      @menu_name = "#{@lecture.course_name} 学生別成績一覧"
    end
    render :partial => "stochastics_of_students", :layout => "base_layout", :target => "_new"
  end
def stochastics_of_students catch :flash_now do receive_and_set_background_params setting_global_assert_time_with_academic_season academic_season_cond = set_academic_season_cond ( "reports" , :created_at ) @exercise = find_entity @def_items = Def_Stochastics_Items @lecture = @exercise . assoc_dependee "Lecture" , "[(<< :self)
                                                        (>> :Course)]" , :assert_time => :anytime , :select => { :id => "lectures.id" , :run_id => "lectures.run_id" , :course_name => "courses.name" } flash_now @lecture . blank? , "該当する授業がありません．" @collection = @lecture . associated_with "UserInfo" , "<- .created_by :Report[( >> :Exercise >> :self)
                                                                                 ( <- :ReportComment )]" , :select => select_items , :conditions => academic_season_cond , :group => "user_infos.name" @view_allowed = [ :no_detail_call ] @menu_name = "#{@lecture.course_name} 学生別成績一覧" end render :partial => "stochastics_of_students" , :layout => "base_layout" , :target => "_new" end
stochastics of student performance through lecture of the exercise
stochastics of student performance through lecture of the exercise