Updating resources

This commit is contained in:
2014-02-09 02:08:08 -07:00
parent e16e35e098
commit 58926cf3ab
7 changed files with 55 additions and 33 deletions

View File

@@ -1,4 +1,13 @@
class ResourcesController < ApplicationController
load_and_authorize_resource
before_filter :authenticate_user!
def destroy
@resource.destroy
respond_to do |format|
format.html { redirect_to(request.env["HTTP_REFERER"]) }
format.json { head :ok }
end
end
end