# File app/controllers/conferences_adm_controller.rb, line 107 def destroy_timeslot redirect_to :action => :timeslots, :id => @conference.id if tslot = Timeslot.find_by_id(params[:timeslot_id]) and tslot.conference == @conference and tslot.destroy flash[:notice] << _('The requested timeslot was successfully deleted') else flash[:error] << _('Could not find requested timeslot (%d) for ' + 'deletion - Maybe it was already deleted?') % params[:timeslot_id] end end