# Uncomment this if you reference any of your controllers in activate # require_dependency 'application' class GeopressExtension < Radiant::Extension version "1.0" description "GeoPress allows you to add a location to any post and insert a map, microformat location, GeoRSS and KML" url "http://georss.org/geopress" define_routes do |map| map.connect 'admin/geopress/:action', :controller => 'admin/geopress' end def activate admin.tabs.add "Geopress", "/admin/geopress", :after => "Layouts", :visibility => [:all] Page.send :include, GeopressTags end def deactivate admin.tabs.remove "Geopress" end end