Skip to content

Commit

Permalink
updating results views and controller for new paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Yoon committed Sep 23, 2010
1 parent c3619a3 commit 14dde9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/controllers/results_controller.rb
@@ -1,4 +1,5 @@
class ResultsController < ApplicationController
helper 'surveyor'
layout 'results'
def index
@surveys = Survey.all
Expand Down
2 changes: 1 addition & 1 deletion app/views/results/index.html.erb
Expand Up @@ -11,7 +11,7 @@
<tr>
<td><%=h survey.id %></td>
<td><%=h survey.title %></td>
<td><%= link_to "show results list(#{survey.response_sets.count})", show_one_survey_results_path(survey) %></td>
<td><%= link_to "show results list(#{survey.response_sets.count})", result_path(survey.access_code) %></td>
</tr>
<% end %>
</table>
2 changes: 1 addition & 1 deletion app/views/results/show.html.erb
Expand Up @@ -22,4 +22,4 @@

<br />

<%= link_to "Back", admin_results_path %>
<%= link_to "Back", results_path %>

0 comments on commit 14dde9e

Please sign in to comment.