Skip to content

Commit 1235658

Browse files
authored
Update index.html.erb
fix bugs of &
1 parent 15137e6 commit 1235658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/courses/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<td><%= course.name %></td>
3535
<td><%= course.credit %></td>
3636
<td><%= course.exam_type %></td>
37-
<td><%= course.teacher&.name %></td>
37+
<td><%= course.teacher.name %></td>
3838

3939
<% if teacher_logged_in? %>
4040
<td><%= link_to "编辑", edit_course_url(course), class: 'btn btn-xs btn-info' %></td>
@@ -56,4 +56,4 @@
5656
</div>
5757
</div>
5858
</div>
59-
</div>
59+
</div>

0 commit comments

Comments
 (0)