title: define method in model that can be accessed in controller
body: <p>I have defined a problems method in my Report model.  I need to use the value of Report.problem in the report's controller while defining the action show. But i keep getting the error message 'undefined method problem'. How do i solve this? Any assistance would be greatful.</p>
  
  <p>I have a report model and a problem model that contains a list of all problems.</p>
  
  <p>In report model</p>
  
  <pre><code>def problems1
  Problem.find(:all, :conditions =&gt; )
  end
  </code></pre>
  
  <p>In the reports controller i need something like</p>
  
  <pre><code>def show
    @report = Report.problems1
  end
  </code></pre>