AutoCommit Sam Aug 1 11:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-01 11:03:01 +02:00
parent d5571b38fa
commit a079a88dbc
4 changed files with 25 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
<%= render @survey_question %>
<%= link_to "comment" , new_comment_path( commentable_type: "Survey::Question", commentable_id: @survey_question.id), remote:true if can? :comment, @survey_question %>
<%= link_to "comments:.."+ @survey_question.comments.count().to_s, comments_path(commentable_type: "Survey::Question", commentable_id: @survey_question.id), remote:true, id: Comment.switchshowid_for( @survey_question) %>
<%= link_to "comments:.."+ @survey_question.comments.count().to_s, comments_path(commentable_type: "Survey_Question", commentable_id: @survey_question.id), remote:true, id: Comment.switchshowid_for( @survey_question) %>
<div id="<%= Comment.formid_for( @survey_question) %>">
</div>
<% unless @survey_question.comments.roots.empty? %>