title: Utility Classes In Ruby on Rails
body: <p>This is probably a stupid question, but I'm new to Ruby on Rails and I could use a little guidance.  I want to have a helper/utility class that performs a group of network operations and returns results.  Where do I put that class and how do I use it.  </p>
  
  <p>I've created network_helper.rb in my app/modulename/helpers directory.  In my controller when I try to do </p>
  
  <pre><code>  myNetworkHelper = ModuleName::NetworkHelper.new
    results = myNetworkHelper.getResults
  </code></pre>
  
  <p>I get an error </p>
  
  <pre><code> undefined method `new' for MyModule::NetworkHelper:Module
  </code></pre>
  
  <p>I'm sure this is just a misunderstanding of how ruby on rails works.  Can I get some clarification?</p>
  
  <p>Would it be better to make this a class instead of a module and put it in libs?  And can I add subfolders in libs and have them automatically loaded?</p>