Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
# Uncomment this if you reference any of your controllers in activate # require_dependency 'application' class SsbbExtension < Radiant::Extension version "1.0" description "Extended functionality required for the SSBB site" define_routes do |map| map.connect 'admin/lawyers/:action', :controller => 'admin/lawyers' map.connect 'admin/practice_areas/:action', :controller => 'admin/practice_areas' end def activate admin.tabs.add "Lawyers Directory", "/admin/lawyers", :after => "Layouts", :visibility => [:all] admin.tabs.add "Practice Areas", "/admin/practice_areas", :after => "Lawyers Directory", :visibility => [:all] Page.send :include, SsbbTags BioPage PracticeAreaPage end def deactivate admin.tabs.remove "Lawyers Directory" admin.tabs.remove "Practice Areas" end end
From the Design Piracy series on my blog: