Skip to content

Instantly share code, notes, and snippets.

@sivabudh
Created September 27, 2011 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sivabudh/1245105 to your computer and use it in GitHub Desktop.
Save sivabudh/1245105 to your computer and use it in GitHub Desktop.
Update
- for course in @courses
- course.assessment_schedules.each do |assessment_schedule|
%tr.assessments
%td.course-title= course.title
%td.assessment-title= assessment_schedule.assessment_template.title
%td= assessment_schedule.assessment_template.created_at.to_s(:short)
%td.start-btn.text-center
- if assessment_schedule.takable?
= link_to "Start", assessment_schedule_assessments_path(assessment_schedule), :method => 'post', :class => "btn start"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment