<%- courses.each_with_index do |course, i| %>
  <div class="course <%= 'course-first' if i == 0 %>">
    <div class="course-title"><%= link_to course.title, "#" %></div>
  </div>
<%- end %>

<%- courses.each_with_index do |course, i| %>
  <div class="course <%= 'course-first' if i == 0 %>">
    <div class="course-title"><%= link_to course.title, edit_course_path(course) %></div>
  </div>
<%- end %>

Add Edit Link for Listed Courses
Add Edit Link for Listed Courses

Update the listed Courses to link to the edit action/view when the title
is clicked on.
