Skip to content

Instantly share code, notes, and snippets.

@aep
Created March 23, 2014 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aep/9725938 to your computer and use it in GitHub Desktop.
Save aep/9725938 to your computer and use it in GitHub Desktop.
after_action :verify_authorized
# DELETE /applications/1
# DELETE /applications/1.json
def destroy
@app.destroy
respond_to do |format|
format.html { redirect_to apps_url }
format.json { head :no_content }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment