Skip to content

Commit

Permalink
Passes test that checks if a student's current teacher's skype userna…
Browse files Browse the repository at this point in the history
…me renders on their dashboard
  • Loading branch information
charlieperson committed Apr 26, 2016
1 parent 9d7b6c8 commit 1d7c8c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/dashboard/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@
<br>
Current teacher:
<% @student.current_teachers.each do |relationship| %>
Name:
<%= @teachers.find(relationship.teacher_id).teacher_profile.name %>
<br>
Skype username:
<%= @teachers.find(relationship.teacher_id).teacher_profile.skype_username %>
<br>
<% end %>
<br>
<h3>Class materials:</h3>
Expand Down

0 comments on commit 1d7c8c5

Please sign in to comment.