Permalink
Browse files

Fixed routing bug for Graders and Admins while looking at submissions…

… when students has hosted some files
  • Loading branch information...
1 parent 4a6b982 commit 98079adc75c097124358321847ef29faf500e4f7 Bertrand committed Nov 17, 2011
Showing with 8 additions and 8 deletions.
  1. +8 −8 app/views/submissions/submissions_table_row/_table_row.html.erb
@@ -29,15 +29,15 @@
assignment.id,
grouping.id) %>
<% elsif grouping.current_submission_used.remark_submitted? %>
- <%= link_to h(grouping.group.group_name),
- :controller => 'results',
- :action => 'edit',
- :id => grouping.current_submission_used.remark_result %>
+ <%= link_to h(grouping.group.group_name),:url=>{
+ :controller => :results,
+ :action => :edit,
+ :id => grouping.current_submission_used.remark_result} %>
<% else %>
- <%= link_to h(grouping.group.group_name),
- :controller => 'results',
- :action => 'edit',
- :id => grouping.current_submission_used.result %>
+ <%= link_to h(grouping.group.group_name),:url=>{
+ :controller => :results,
+ :action => :edit,
+ :id => grouping.current_submission_used.result} %>
<% end %>
(<%= h(grouping.accepted_students.collect{ |student| student.user_name}.join(',')) %>)
<%='<span class="invalid">' + t(:invalid_grouping) + '</span>' if !grouping.is_valid? %>

0 comments on commit 98079ad

Please sign in to comment.