File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 99 <% if cart . user === current_user %>
1010 <% if cart . exercises %>
1111 <% cart . exercises . each do |exercise | %>
12- < dd > <%= link_to exercise . title , exercise_path ( exercise ) %> </ dd >
12+ <% if exercise %>
13+ < dd > <%= link_to exercise . title , exercise_path ( exercise ) %> </ dd >
14+ <% end %>
1315 <% end %>
1416 <% else %>
1517 < dd > <%= 'No exercises added' %> </ dd >
Original file line number Diff line number Diff line change 1818 < td > <%= collection . title %> </ td >
1919 <% if collection . exercises %>
2020 <% collection . exercises . each do |exercise | %>
21- < td > <%= link_to exercise . title , exercise_path ( exercise ) %> </ td >
21+ <% if exercise %>
22+ < td > <%= link_to exercise . title , exercise_path ( exercise ) %> </ td >
23+ <% end %>
2224 <% end %>
2325 <% else %>
2426 < td > <%= 'No exercises added' %> </ td >
You can’t perform that action at this time.
0 commit comments