def view_on db, view_name, query = {}, &block
      raise ArgumentError, "View query options must be set as symbols!" if query.keys.find{|k| k.is_a?(String)}
      view_name = view_name.to_s
      view_slug = "#{name}/#{view_name}"
      # Set the default query options
      query = view_defaults(view_name).merge(query)
      # Ensure reduce is set if dealing with a reduceable view
      # This is a requirement of CouchDB.
      query[:reduce] ||= false if can_reduce_view?(view_name)
      db.view(view_slug, query, &block)
    end
def view_on db, view_name, query = {}, &block
      raise ArgumentError, "View query options must be set as symbols!" if query.keys.find{|k| k.is_a?(String)}
      view_name = view_name.to_s
      view_slug = "#{name}/#{view_name}"
      # Set the default query options
      query = view_defaults(view_name).merge(query)
      # Ensure reduce is set if dealing with a reduceable view
      # This is a requirement of CouchDB.
      query[:reduce] ||= false if can_reduce_view?(view_name)
      db.view(view_slug, query, &block)
    end
Dispatches to any named view in a specific database