Rails 2.3 and helpers within plugins


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?

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
My question now is: how can I do it the best way?

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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs