Rails 2.3 and helpers within plugins


#1

Hi,

I’m porting a plugin of mine to work with rails 2.3. My plugin is
based in engines.
I’m doing good so far, the only problem is with helpers. Rails seems
not to recognize helpers from my plugin.

Anyone ran into this issue?


#2

I’m starting to get it. Engines Plugin did some kind of generic
include, making the helpers within a plugin to be available within the
app.
My question now is: how can I do it the best way?


#3

Got it,

Just put in my init.rb some lines like:

ActionView::Base.send :include, ResourcesHelper
ActionView::Base.send :include, AcApplicationHelper
ActionView::Base.send :include, LookupHelper

thanks