Skip to content

Commit

Permalink
Merge pull request #42 from kassi/active-record-comments
Browse files Browse the repository at this point in the history
Fix error when adding an active_record comment
  • Loading branch information
Bodacious committed Aug 19, 2013
2 parents 09cebd6 + 2e85a97 commit 0815fc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/blogit/comments/create.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ var $form = $("form#new_blog_comment");
$("#comments").append("<%= escape_javascript(render(@comment)) %>");
$form.get(0).reset();
<% else %>
$form.html("<%= escape_javascript(render('form')) %>");
<% end %>
$form.html("<%= escape_javascript(render(partial:'form', locals: { post: @comment.post, comment: @comment })) %>");
<% end %>

0 comments on commit 0815fc2

Please sign in to comment.