.pull-right=link_to'Destroy',[@project,@snippet],confirm: 'Removed snippet cannot be restored! Are you sure?',method: :delete,class: "btn pull-right danger delete-snippet",id: "destroy_snippet_#{@snippet.id}"
.pull-right=link_to'Destroy',snippet_path(@snippet),confirm: 'Removed snippet cannot be restored! Are you sure?',method: :delete,class: "btn pull-right danger delete-snippet",id: "destroy_snippet_#{@snippet.id}"