spec/dummy/app/controllers/reports_controller.rb
# remember to add authentication/authorization. E.g:
# before_filter :require_user
# load_and_authorize_resource
remember to add authentication/authorization.
remember to add authentication / authorization .
def destroy
    @report = Report.find params[:id]
    @report.destroy
    flash[:notice] = 'Report was successfully deleted.'
    redirect_to root_url
  end
def destroy @report = Report . find params [ :id ] @report . destroy flash [ :notice ] = 'Report was successfully deleted.' redirect_to root_url end
remember to add authentication/authorization.
remember to add authentication / authorization .