Hi,
I am in the process of learning Ruby and Rails and I am having a problem with some some helpers that will end up in a plugin. I have defined the following, approximately:
module ApplicationHelper
def foo SomeClass.new end
module A def method_missing(name, *args) .... content_tag(...) .... end end
class SomeClass include A def method_missing(name, *args) super(name args) end end
end
Now, the problem is that content_tag is not defined in Module A. I have tried including into Module A various helper modules of ActionView but it ends up not finding _erbout, so I gave out using that route. I was wondering if there is another way to make my Module A pick up all of the Helper methods of ActionView the same way that ApplicationHelper does. Ultimately Module A and SomeClass will be extracted into a plugin, but I wanted to test if what I am trying to do will work at all... Any suggestions and workarounds would be great!!