def destroy
      @snippet = Snippet.find(params[:id])
      @snippet.destroy

      respond_to do |format|
        format.html { redirect_to snippets_url }
        format.json { head :no_content }
      end
    end
def destroy
      @snippet = Snippet.find(params[:id])
      @snippet.destroy

      respond_to do |format|
        format.html { redirect_to snippets_url }
        format.json { head :no_content }
      end
    end
DELETE /snippets/1
 DELETE /snippets/1.json