AutoCommit Fre Aug 7 09:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-07 09:03:01 +02:00
parent 13283e0e65
commit 84b88a141c
2 changed files with 3 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
</ul> </ul>
<%= link_to "+" , new_survey_choice_path(params:{question_id: question.id}), remote: true%> <%= link_to "+" , new_survey_choice_path(params:{question_id: question.id}), remote: true%>
</div> </div>
<%= render partial: "survey/questions/answeredquestion", object: question if question.answers.where(user_id: current_user.id).count>0%> <%= render partial: "survey/questions/answeredquestion", object: question if question.answers.where(user_id: current_user.id).count>0 %>
</div> </div>
<% end %> <% end %>

View File

@@ -9,4 +9,5 @@
<%= render_comments_for(@survey_question) %> <%= render_comments_for(@survey_question) %>
<%= link_to 'Edit', edit_survey_question_path(@survey_question) %> | <%= link_to 'Edit', edit_survey_question_path(@survey_question) %> |
<%= link_to 'Back', polymorphic_path(@survey_question.parent) %> <%= link_to 'Back', polymorphic_path(@survey_question.parent)
%>