We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15137e6 commit 1235658Copy full SHA for 1235658
app/views/courses/index.html.erb
@@ -34,7 +34,7 @@
34
<td><%= course.name %></td>
35
<td><%= course.credit %></td>
36
<td><%= course.exam_type %></td>
37
- <td><%= course.teacher&.name %></td>
+ <td><%= course.teacher.name %></td>
38
39
<% if teacher_logged_in? %>
40
<td><%= link_to "编辑", edit_course_url(course), class: 'btn btn-xs btn-info' %></td>
@@ -56,4 +56,4 @@
56
</div>
57
58
59
-</div>
+</div>
0 commit comments