Creating a simple blog application,
I have this partial
.comment
%p
%b
Namn:
= comment.name
%p
%b
kommentar:
= comment.content
%p
= link_to 'Destroy Comment', [comment.post, comment],
:confirm => 'Are you sure?',
:method => :delete
and its called from
= render :partial => 'comment', :collection => @post.comments
it always renders the partial one time to many?
edit:
It has this form
= form_for ([@post,@post.comments.build])