def update      
      return if !verify_logged_in
      
      resp = Caboose::StdClass.new({'attributes' => {}})
      search = SavedSearch.find(params[:id])    
      
      save = true
      params.each do |name,value|
        case name
          when 'interval'
            search.interval = value
            resp.attributes['interval'] = { 'text' => "#{value}" }          
  		  end
  		end
  		resp.success = save && search.save  
      render :json => resp
    end
def update      
      return if !verify_logged_in
      
      resp = Caboose::StdClass.new({'attributes' => {}})
      search = SavedSearch.find(params[:id])    
      
      save = true
      params.each do |name,value|
        case name
          when 'interval'
            search.interval = value
            resp.attributes['interval'] = { 'text' => "#{value}" }          
  		  end
  		end
  		resp.success = save && search.save  
      render :json => resp
    end
PUT /saved-searches/:id