<% @courses.each do |course| %> <%= course.year %> <%= link_to course.title, page_for_course(course), target: "blank"%>
<%= link_to course.course_assignments.count,course_assignments_admin_courses_path(:id=> course.id) %> <%= course.member_profile.name rescue "" %> <%= course.display_students rescue "" %> <% end %>