class EventsController < ApplicationController
before_filter :login_required
#before_filter :require_login, :only => [ :list, :show ]
#
layout "backend"
require 'globals_helper'
require 'onekfires_lib'
require 'globals_lib'
include Globals
include OneKFiresUtil
def index
list
render :action => 'list'
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy, :create, :update ],
:redirect_to => { :action => :list }
def deleteaudio
logger.debug("in EVENT CONTROLLER::deleteaudio!!")
begin
upload = Upload.get_upload_not_deleted(params[:upload_id])
if !upload.nil?
logger.debug("upload found and is thus: #{upload.file_name}")
upload.media_delete("EVENT_AUDIO")
end
rescue => err
logger.warn("deleteaudio error occurred: #{err}")
flash[:notice] = 'Upload does not exist to delete!!'
end
#Rotation work
Rotation.init_rotations
redirect_to :action => "edit", :id => params[:event_id]
end
def deleteimage
params[:event_id]
![]() |
1000fires was a band from 1999 until somewhere around 2004 or when Hank saw the Medications play and went a little crazy and needed a musical sabatical.
To learn about the old band, look for the FIRE!!!!! Hank needs to get off his ass and fix the links. Here is Hank's Tech Blog [mostly related to Rails and Security.] |
|
|||
music I like
|
|||||