Skip to content

Instantly share code, notes, and snippets.

@erubboli
Created September 27, 2010 14:08
Show Gist options
  • Save erubboli/599083 to your computer and use it in GitHub Desktop.
Save erubboli/599083 to your computer and use it in GitHub Desktop.
class ClientsController < ApplicationController
respond_to :html, :xml, :json
# [..] removed code [..]
# DELETE /clients/1
# DELETE /clients/1.xml
def destroy
@client = Client.find(params[:id])
@client.destroy
respond_to do |format|
format.html { redirect_to(clients_url) }
format.xml { head :ok }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment