Forum: Ruby on Rails Rails 2.3 and helpers within plugins

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8f300967f0bb88a6709eb676c1762bc2?d=identicon&s=25 acras (Guest)
on 2009-03-20 21:18
(Received via mailing list)
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?
8f300967f0bb88a6709eb676c1762bc2?d=identicon&s=25 acras (Guest)
on 2009-03-20 21:28
(Received via mailing list)
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?
8f300967f0bb88a6709eb676c1762bc2?d=identicon&s=25 acras (Guest)
on 2009-03-20 21:45
(Received via mailing list)
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
This topic is locked and can not be replied to.