.right=link_to'Destroy',[@project,@snippet],:confirm=>'Are you sure?',:method=>:delete,:class=>"grey-button delete-snippet negative",:id=>"destroy_snippet_#{@snippet.id}"
-unless@snippet.new_record?
.right=link_to'Destroy',[@project,@snippet],:confirm=>'Are you sure?',:method=>:delete,:class=>"red-button delete-snippet",:id=>"destroy_snippet_#{@snippet.id}"
=link_to'Destroy',[@project,snippet],:confirm=>'Are you sure?',:method=>:delete,:remote=>true,:class=>"cred delete-snippet negative",:id=>"destroy_snippet_#{snippet.id}"