def path(object, options = {})
      params = Sitemap.configuration.params.clone.merge!(options[:params] || {})
      params[:protocol] ||= protocol # Use global protocol if none was specified.
      params[:host] ||= host # Use global host if none was specified.
      params.merge!(params) { |type, value| get_data(object, value) }

      search = Sitemap.configuration.search.clone.merge!(options.select { |k, v| SEARCH_ATTRIBUTES.keys.include?(k) })
      search.merge!(search) { |type, value| get_data(object, value) }

      self.store << {
        :object => object,
        :search => search,
        :params => params
      }
    end
def path(object, options = {})
      params = Sitemap.configuration.params.clone.merge!(options[:params] || {})
      params[:protocol] ||= protocol # Use global protocol if none was specified.
      params[:host] ||= host # Use global host if none was specified.
      params.merge!(params) { |type, value| get_data(object, value) }

      search = Sitemap.configuration.search.clone.merge!(options.select { |k, v| SEARCH_ATTRIBUTES.keys.include?(k) })
      search.merge!(search) { |type, value| get_data(object, value) }

      self.store << {
        :object => object,
        :search => search,
        :params => params
      }
    end
Adds the specified url or object (such as an ActiveRecord model instance).
 In either case the data is being looked up in the current application routes.

 Params can be specified as follows:

   # config/routes.rb
   match "/frequent-questions" => "static#faq", :as => "faq"

   # config/sitemap.rb
   path :faq, :params => { :filter => "recent" }

 The resolved url would be <tt>http://mywebsite.com/frequent-questions?filter=recent</tt>.