def obtain_tag(check = nil) 
      segments = []
      if check.blank?
        return nil if params[:slug].blank?
        segments = params[:slug].split('/')
      end

      # get the taxonomy name and search the database for the record with this as its slug
      t = obtain_term_check(check, segments, 'tag')
      t if !t.blank?

    end
def obtain_tag(check = nil) 
      segments = []
      if check.blank?
        return nil if params[:slug].blank?
        segments = params[:slug].split('/')
      end

      # get the taxonomy name and search the database for the record with this as its slug
      t = obtain_term_check(check, segments, 'tag')
      t if !t.blank?

    end
returns all the data for the given tag
 Params:
 +check+:: ID, slug, or name of the tag - if this is nil it will return the current tag you are on