config/routes.rb
def matches?(request)
    # this treats */* as html request
    return false unless request.format
    return false unless request.format.html?

    @exceptions.each {|p|
      return false if p.match request.path
    }

     true
  end
# if any html request comes through then match it
# unless it is in the assets path
if any html request comes through then match it
unless it is in the assets path
if any html request comes through then match it unless it is in the assets path
def matches?(request)
    return false unless request.format
    return false unless request.format.html?
    @exceptions.each {|p|
      return false if p.match request.path
    }
     true
  end
def matches? ( request ) return false unless request . format return false unless request . format . html? @exceptions . each { | p | return false if p . match request . path } true end
if any html request comes through then match it
unless it is in the assets path
if any html request comes through then match it unless it is in the assets path
# this treats */* as html request
request