Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
--- _comment_event.rhtml 2007-10-01 12:40:32.000000000 +0100 +++ _comment_event.rhtml.fixed 2007-12-18 13:05:23.000000000 +0000 @@ -15,9 +15,9 @@ <% if event.comment.approved? -%> <%= link_to_remote 'Unapprove', :url => { :controller => 'admin/articles', :action => 'unapprove', :id => event.article_id, :comment => event.comment_id } %> | <% else -%> - <%= link_to_remote 'Approve', :url => { :controller => 'admin/articles', :action => 'approve', :id => @article, :comment => event.comment_id } %> | + <%= link_to_remote 'Approve', :url => { :controller => 'admin/articles', :action => 'approve', :id => event.article_id, :comment => event.comment_id } %> | <% end -%> - <%= link_to_remote 'Delete', :url => { :controller => 'admin/articles', :action => 'destroy_comment', :id => @article, :comment => event.comment_id } %> + <%= link_to_remote 'Delete', :url => { :controller => 'admin/articles', :action => 'destroy_comment', :id => event.article_id, :comment => event.comment_id } %> <% end %> </div> </li>
This paste will be private.
From the Design Piracy series on my blog: