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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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? On 20 mar, 17:18, acras <ricardo.ac...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On 20 mar, 17:28, acras <ricardo.ac...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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? > > On 20 mar, 17:18, acras <ricardo.ac...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > 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?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---