app/controllers/lectures_controller.rb
# show detail of lecture as an article in scchedule
show detail of lecture as an article in scchedule
show detail of lecture as an article in scchedule
def show_lecture_schedule
    receive_and_set_background_params
    datetime = @background_params[:date].to_datetime(:local)
    academic_year, academic_season = Run.get_academic_year(datetime), Run.get_academic_season(datetime)
    @background_params.merge! :academic_year  => academic_year,
                              :academic_seaon => academic_season
    catch :flash_now do find_detail end
    render :update do |page|
      page.replace_html "working_div", :partial => "lectures/detail"
      page.insert_html :top, "working_div" , :partial => "shared/flash_notice"
      page.insert_html :bottom, "working_div" , :partial => "schedules/back_to_calendar"
    end    
  end
def show_lecture_schedule receive_and_set_background_params datetime = @background_params [ :date ] . to_datetime ( :local ) academic_year , academic_season = Run . get_academic_year ( datetime ) , Run . get_academic_season ( datetime ) @background_params . merge! :academic_year => academic_year , :academic_seaon => academic_season catch :flash_now do find_detail end render :update do | page | page . replace_html "working_div" , :partial => "lectures/detail" page . insert_html :top , "working_div" , :partial => "shared/flash_notice" page . insert_html :bottom , "working_div" , :partial => "schedules/back_to_calendar" end end
show detail of lecture as an article in scchedule
show detail of lecture as an article in scchedule
# render lecture detail on calendar table.