Skip to content
Extraits de code Groupes Projets
Valider e56df5c1 rédigé par danielvincent's avatar danielvincent
Parcourir les fichiers

fixed issue rendering partial for a comment in comments#create

parent 502b4dde
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -20,7 +20,7 @@ class CommentsController < ApplicationController
respond_to do |format|
format.js{ render :json => { :post_id => @comment.post_id,
:comment_id => @comment.id,
:html => render_to_string(:partial => type_partial(@comment), :locals => {:post => @comment, :current_user => current_user})},
:html => render_to_string(:partial => type_partial(@comment), :locals => {:comment => @comment, :person => current_user, :current_user => current_user})},
:status => 201 }
format.html{ render :nothing => true, :status => 201 }
end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter