AutoCommit Sam Aug 1 14:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-01 14:03:01 +02:00
parent fb99d55734
commit cc764f68af
11 changed files with 183 additions and 9 deletions

View File

@@ -0,0 +1,6 @@
<% question=mail %>
<div class="contentbox">
<b><%= question.title%></b> <%=question.text%></div>
<% question.choices.each do |c| %>
<li><%= render c %></li>
<% end %>

View File

@@ -11,7 +11,7 @@
<li><%= render c %></li>
<% end %>
</ul></div>
<%= render partial: "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>
<% end %>