# ApplicationHelper problem nesting other modules to it

**URL:** <https://www.ruby-forum.com/t/applicationhelper-problem-nesting-other-modules-to-it/120532>\
**Category:** Rails\
**Created:** [November 18, 2007, 1:21am UTC](https://www.ruby-forum.com/t/applicationhelper-problem-nesting-other-modules-to-it/120532 "2007-11-18T01:21:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a87d85/32.png) [@alan](https://www.ruby-forum.com/u/alan)\
**Post date:** [November 18, 2007, 1:21am UTC](https://www.ruby-forum.com/t/applicationhelper-problem-nesting-other-modules-to-it/120532/1 "2007-11-18T01:21:46Z")

</div>

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!!
