Hey,
Why not try:
def destroy id = params[:id] render :update do |page| page.alert( "THIS TEXT" ) if Job.find(:all, :conditions=> ["type_id=?",id]).size > 0 end end
Gavin
Hey,
Why not try:
def destroy id = params[:id] render :update do |page| page.alert( "THIS TEXT" ) if Job.find(:all, :conditions=> ["type_id=?",id]).size > 0 end end
Gavin
forgot to add the .destroy() call there :S