title: Make all ActionViewer helper methods available in a module
body: <p>I am using ruby on rails 3. I have a model called <code>Content</code>. Within the controller, I extract some variables and pass them to the Viewer. In the Viewer, I would like to use of my self made functions so that I don't have too much logic and code in the Viewer. I defined these functions in the <code>ContentsHelper</code> module. </p>
  
  <p>My functions defined in the ContentsHelper module are making use of ActionViewer helper functions, however these are not available in the ContentsHelper module. I am getting for example <code>NoMethodError: undefined method content_tag' for #&lt;Content:0x1025b9458&gt;</code> error. </p>
  
  <p>How is it possible to make all the ActionViewer helper functions available? </p>
  
  <p>Newbie.</p>
  
  <p>following suggestion of Tim:</p>
  
  <pre><code>module ContentsHelper
  include ActionView::Helpers
    def bla
      content_tag(:h2, self.title)        
  end
  </code></pre>
  
  <p>I can run the bla method as <code>Content.bla</code> in the console. This is perfect!</p>
  
  <p>But when I replacec <code>content_tag</code> with <code>image_tag</code>, then I run into trouble and get this error: </p>
  
  <pre><code>NoMethodError: undefined method `config'
  from /Users/sonat/.rvm/gems/ruby-1.8.7-p334/gems/activemodel-3.0.0/lib/active_model/attribute_methods.rb:364:in `method_missing'
  from /Users/sonat/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.0.0/lib/active_record/attribute_methods.rb:46:in `method_missing'
  from /Users/sonat/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-3.0.0/lib/active_record/attribute_methods.rb:44:in `send'
  </code></pre>
  
  <p>I can see that module that is responsible of the image_tag method is missing "something". I would appreciate if you guys tell me the general approach in finding what is missing and how I could solve the problem.</p>