public
Description: Rails Sitemap Plugin / Site Map Plugin for Rails. A beautiful rails sitemap plugin that talks to Google, Yahoo and MSN when updated. Sitemap features clean handcrafted XHTML, XML with XSLT and custom finder options for your named routes.
Clone URL: git://github.com/queso/sitemap.git
Search Repo:
Fixing has_sitemap to work now.
queso (author)
Sat Mar 22 23:14:20 -0700 2008
commit  fada982cca27f23f9b3f054a83b6eab8605cbeac
tree    84071843693ccba42504648e3297dfdf53e92e4a
parent  5548eb300c1415a346f9d0d51235c474bfa4cfe5
...
1
2
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
0
@@ -1,5 +1,8 @@
0
 require 'sitemap'
0
 require 'sitemap_fu'
0
+ActiveRecord::Base.class_eval do
0
+ include Queso::Acts::Sitemap
0
+end
0
 SitemapsController.view_paths = [File.join(directory, 'views')]
0
 SitemapSettingsController.view_paths = [File.join(directory, 'views')]
0
 SitemapWidgetsController.view_paths = [File.join(directory, 'views')]
...
25
26
27
28
29
 
 
 
30
31
32
...
25
26
27
 
 
28
29
30
31
32
33
0
@@ -25,8 +25,9 @@
0
         end
0
         
0
         def ping_search_engine(url)
0
- if location = SitemapSetting.xml_location
0
- open("http://#{url}//ping?sitemap=#{location}")
0
+ if location = SitemapSetting.find(:first).xml_location
0
+ response = open("http://#{url}//ping?sitemap=#{location}")
0
+ logger.info("Just tried to ping #{url} with a sitemap update.")
0
           end
0
         end
0
         

Comments

    No one has commented yet.