Updating resources
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user