I have follow the code in help extension. But it doesn't seem to work. I am 
using Radiant 0.9.1. I have a a common_helper.rb under my extension 
my_extension/app/helpers/common_helper.rb. So under
class MyExtensionExtension < Radiant::Extension
   def activate
      ApplicationController.class_eval{
        helper CommonHelper
      }
   end
end

But the methods in CommonHelper is not visible in the view. I always get 
undefined methods error for ActionView::Base. However i move the code to the 
following then it works. I suspect it is the loading order problem.

require_dependency 'application_controller'
ApplicationController.class_eval{
  helper CommonHelper
}

class MyExtensionExtension < Radiant::Extension
   def activate
   end
end

I saw some extension directly include the Helper for ActionView::Base and it 
works.
ActionView::Base.send :include, ShareLayouts::Helper

Reply via email to