app/controllers/shares_controller.rb
#destroy method takes care of deleting the share record
destroy method takes care of deleting the share record
destroy method takes care of deleting the share record
def destroy
  	@share = Share.find(params[:id])
  	@share.destroy
  	redirect_to shares_url, alert: "Share successfully deleted!"
  end
def destroy @share = Share . find ( params [ :id ] ) @share . destroy redirect_to shares_url , alert : "Share successfully deleted!" end
destroy method takes care of deleting the share record
destroy method takes care of deleting the share record