title: undefined method 'link_to'
body: <p>I'm writing a ruby-on-rails library module:</p>
  
  <pre><code>module Facets
  
    class Facet
      attr_accessor :name, :display_name, :category, :group, :special
  
      ...
  
      URI = {:controller =&gt; 'wiki', :action =&gt; 'plants'}
      SEARCH = {:status =&gt; WikiLink::CURRENT}
  
      #Parameters is an hash of {:field =&gt; "1"} values
      def render_for_search(parameters)
      result = link_to(display_name, URI.merge(parameters).merge({name =&gt; "1"}))
      count = WikiPlant.count(:conditions =&gt; (SEARCH.merge(parameters.merge({name =&gt; "1"}))))
      result &lt;&lt; "(#{count})"
      end
    end
  
    ...
  
  end
  </code></pre>
  
  <p>when I call render_for_search I get the error </p>
  
  <pre><code>undefined method 'link_to'
  </code></pre>
  
  <p>I've tried requiring url_helper directly but can't figure out what's going wrong.</p>